Skip to content

Instantly share code, notes, and snippets.

@RafaelFunchal
Created July 18, 2014 21:37
Show Gist options
  • Save RafaelFunchal/d5c6970bb65672e94062 to your computer and use it in GitHub Desktop.
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
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