Created
May 26, 2014 03:45
-
-
Save guoxiangke/48d31d9c83d7040a548a to your computer and use it in GitHub Desktop.
chrome firefox input radios click auto submit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$("#webform-client-form-1363 .form-actions .form-radios label").live('click',function(e){//.click(function(){ | |
e.preventDefault(); | |
$(this).children('input').attr('checked','checked'); | |
// console.log('click'); | |
$("#webform-client-form-1363 .form-actions input[type=submit]").trigger("click"); | |
}); | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment