Mr Miss Mrs Ms
How could this be a problem you think? Exactly a quick google search and as expected the following code worked just fine in almost all browser exept IE9 ggrrrrrr:
var cTitle = $('input:radio:checked', '#myForm').val();
var cTitle = $('input[name=cTitle]:checked', '#myForm').val();
Yes the second attempt was close but i was missing the around the radio name and should have taken the to get the objects 🙁
var cTitle = $("input[name='clientTitle']:checked").val();
I know a prime example of copy and paste and not really using my head. So just in case you run into similar problems give it a try and hopefully save some time.

Leave a Reply

Your email address will not be published. Required fields are marked *