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();
  4. // for jquery 1.3
  5. var var_name = $("input[name='radio_name']:checked").val();

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.