Radio button values using jquery


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // for older jquery
  2. var var_name = $("input[@name='radio_name']:checked").val();
  3.  
  4. // for jquery 1.3
  5. var var_name = $("input[name='radio_name']:checked").val();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.