diff --git a/js/jquery.ezmark.js b/js/jquery.ezmark.js index 9e4d79c..ccd744b 100644 --- a/js/jquery.ezmark.js +++ b/js/jquery.ezmark.js @@ -44,7 +44,7 @@ var wrapTag = $this.attr('type') == 'checkbox' ? '
' : '
'; // for checkbox if( $this.attr('type') == 'checkbox') { - $this.addClass(defaultOpt.hideCls).wrap(wrapTag).change(function() { + $this.addClass(defaultOpt.hideCls).wrap(wrapTag).click(function() { if( $(this).is(':checked') ) { $(this).parent().addClass(defaultOpt.checkedCls); } @@ -57,7 +57,7 @@ } else if( $this.attr('type') == 'radio') { - $this.addClass(defaultOpt.hideCls).wrap(wrapTag).change(function() { + $this.addClass(defaultOpt.hideCls).wrap(wrapTag).click(function() { // radio button may contain groups! - so check for group $('input[name="'+$(this).attr('name')+'"]').each(function() { if( $(this).is(':checked') ) {