put checked radio ID separated by a delimiter into hidden field
halo there..need some help here..hope u all can help ya.
i got a list of radiobutton, with differnt name.
when i click on the radio button, it willpass the 'ID' into the JS function, how can i get the CHEKED radio ID and put in the hidden field first? i wan to put the all checked radio ID separated by a specified delimiter, such as in this format--> 1.2.3.4.5.6 with the delimiter '.'. can some one plz help me? thanx. bewlow is my html code :
when i onclick the radio button, i call two function. the radio buttons value is loop from the Db so it has differnet name for every row. when i clicked on the radio button, one of the calling fucntion is chkPhoto('1')--> it will pass the photoid to the fucntion. if let say got three photo or more, how can i pass the value(assign it into the hidden text field name 'photo'? i would like to assign it in this format --> 1.2.3 with the delimiter join on the checked photo value.plz help
to : here-to-help ,
hi, ya..i wan something like that . but why the value in the text box is got extra for example i choose radio butotn 2, in the text bx will display 2. . i need when i onclick then directly assign the radio button into the text box. i wan do this coz i got another submit button.when i submit it, i will split the radio btuoon value which store in the text box. can u help me look at my code and teach me how to do it?
<input type="Radio" name="chkBuy1" value="1" onClick="chkRadio();chkPhoto('1');" /> in my radio button , i called two function. the second function is chkPhoto which i need to pass another VALUE to the function in JS. so inside the function i need to assign the parameter pass from the chkPhoto('1');" into the text box......
plz..help
thanx
i pass two values from the radio button , then pass to the function and split it to array like ; radio[0],radio[1] to read the value .actually the photo id i need it during i submit the form. so i split it in the asp script also.
Sorry to woke up this old thread.
I just became member to say Thank you to here-to-help. Your solution was amazing and it solved my problems after 1 week web searching.
You did great job.
Bookmarks