Created
July 18, 2014 21:37
-
-
Save RafaelFunchal/d5c6970bb65672e94062 to your computer and use it in GitHub Desktop.
This jQuery code will change the behavior of Checkboxes making them behave as Radios
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
jQuery(document).ready(function($) { | |
var unique = $('.wysija-checkbox'); | |
$(unique).click(function() { | |
$(unique).prop('checked', false ); | |
$(this).prop('checked', true); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment