Hi,I've a form with a lot of fields so I ended up with
var postData = $('#frmUserRegister :input');
but there is also a radio check for the sex so server side I receve always the same valueIs there a way to intersect the checked radio input ?
That's good to know
Maybe this is easier?
var postData = $('#frmUserRegister').serialize();
You can then pass postData to your ajax function.
.serialize() takes care of selecting the correct values of checkboxes/ radios/ selects etc.
var postData = $('#frmUserRegister :input').not('input:radio').add("input[@name='sex']:checked");