View Full Version : how can i refer to dynamic creted of radio button?----urgent

10-20-2006, 09:08 AM

i had created few ground of radio button. the number of ground was based on some data in database.

i had assign each group with different name.
for example, group one as radio_btn_1, group two as radio_btn_2 n .......

how can i access to all radio button???

i try using getElementById(radio_btn_1).length....if show out value "undefined"..

i try access with getElementById(form_name).radio_name.length. it aslo cant show out the length of radio button.... i had assign "radio_name = 'radio_btn_1'".......

how can i access to each radio button?????

isnt got a way that can unchecked radio button in a group without noe which radio button in a group had be checked?

10-20-2006, 10:11 AM

...will return the collection (very much alike with an array) of all the radio buttons (the gruoup) with the name='radiongroupname'. To acces one, or all the elements in that collection you kave to circle with a loop whithin them.