Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radio button problem in IE

Status
Not open for further replies.

jdbolt

Programmer
Aug 10, 2005
89
CA
I Have some script that creates radio buttons, it works fine in IE but not in FF.

The problem is that I can't seem to select the radio button, I click on it but it doesnt become checked. Here is a snippet of my code

Code:
var formComponent = document.createElement("input");
formComponent.setAttribute('type', 'radio');
formComponent.name = 'external';
formComponent.value = 'both';
field.appendChild(formComponent); 
			
// Create a label for the radio button
var componentLabel = document.createElement("label")
componentLabel.innerHTML = 'Yes';
			
// Append it to the field
field.appendChild(componentLabel);

field is a cell object I created earlier in the script. I get no errors in IE it just doesnt allow me to select the object.

Thanks!
 
The search function here is great - you should try it out. Here's a thread from last month ("can't select dynamicaly created radio button in IE"):

thread216-1158530

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top