Skip to content

Instantly share code, notes, and snippets.

@carlwoodhouse
Created February 11, 2013 11:51
Show Gist options
  • Save carlwoodhouse/4754051 to your computer and use it in GitHub Desktop.
Save carlwoodhouse/4754051 to your computer and use it in GitHub Desktop.
radio, do something when selected value changes
$("#marksradio").change(function () {
var selectedValue = $("#marksradio option:selected").val(); // or .text();
// do some shit with selectedValue
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment