Skip to content

Instantly share code, notes, and snippets.

@jesperbjensen
Created May 2, 2012 06:32
Show Gist options
  • Save jesperbjensen/2574464 to your computer and use it in GitHub Desktop.
Save jesperbjensen/2574464 to your computer and use it in GitHub Desktop.
The right way to check to get the selected radio button
// Wrong
var selected_value = $(".SelectedDelivery[checked=checked]").val()
// Right
var selected_value = $(".SelectedDelivery:checked").val()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment