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"/>