Ajax Form Not Sending Radio Button Value
- Forums
- Javascipt
- Ajax Form Not Sending Radio Button Value
i have an ajax form that is not sending radio button value when submitted. can you please help me find the rigth code for this problem, i dont know what is the error thats causing this issue [2226], Last Updated: Mon Jun 24, 2024
Auting
Sun Aug 01, 2010
2 Comments
552 Visits
i have a web form that i am using ajax and when the form is submitted fine, but when i try to get the value of my radio button fields, i get the one that was not check by the user, what am i doing wrong.
this is how my radio button looks like:
<input type="radio" name="sex" value="male"/>
if(!document.getElementById("text").checked){
poststr += "&text=0";
}
when if the user does not give select a radio button, i just give a value of zero
https://www.webune.com/forums/20100801cghg.html