![]() ![]() You can see in the function above that I have decided to select only the first button in the group, by checking the name attribute of the element. ![]() If that is your intention, then great, otherwise it bears thinking about how to decide which button is selected, and breaking the loop. The problem with this function is that it will attempt to check all the radio buttons, so if they belong to a group (which is usually the case), only the last radio button from each group will be selected. If(x.type = 'radio' & x.name != oldname & x.value = 'clean') ![]() Var x = document.getElementsByTagName("input") You might try setting the "checked" attribute instead. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |