Skip to content

Instantly share code, notes, and snippets.

@jhammann
Created June 3, 2013 11:24
Show Gist options
  • Save jhammann/5697539 to your computer and use it in GitHub Desktop.
Save jhammann/5697539 to your computer and use it in GitHub Desktop.
A javascript function to focus on an input field when a checkbox or radio button is changed (checked).
$('input#radio').change(function(){
$("input#amountInput").focus();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment