Here is a simple way to get the value for the selected button in an html form, using jquery:
<input type=”radio” name=”status” value=”1″ /> Free <br />
<input type=”radio” name=”status” value=”2″ selected /> Reserved <br />
<input type=”radio” name=”status” value=”3″ /> Not available <br />
var x = $(‘input[name=status]:checked’).val();
x will now contain 2.
I couldn’t refrain from commenting. Perfectly written!
Thank you !
Thanks for sharing your thoughts. I truly appreciate
your efforts and I am waiting for your further post thank you once again.
I’m gone to inform my little brother, that he should also pay a quick visit this website on regular basis to obtain updated from latest news.