Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

In IE, the change event does not trigger until focus is lost from the co... #6

Open
wants to merge 1 commit into from

1 participant

James Morrish
James Morrish

...ntrol. Using Change() fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Feb 07, 2012
James Morrish jamesmorrish In IE, the change event does not trigger until focus is lost from the…
… control. Using Change() fixes this.
b0e55c6
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 js/jquery.ezmark.js
4 js/jquery.ezmark.js
@@ -44,7 +44,7 @@
44 44 var wrapTag = $this.attr('type') == 'checkbox' ? '<div class="'+defaultOpt.checkboxCls+'">' : '<div class="'+defaultOpt.radioCls+'">';
45 45 // for checkbox
46 46 if( $this.attr('type') == 'checkbox') {
47   - $this.addClass(defaultOpt.hideCls).wrap(wrapTag).change(function() {
  47 + $this.addClass(defaultOpt.hideCls).wrap(wrapTag).click(function() {
48 48 if( $(this).is(':checked') ) {
49 49 $(this).parent().addClass(defaultOpt.checkedCls);
50 50 }
@@ -57,7 +57,7 @@
57 57 }
58 58 else if( $this.attr('type') == 'radio') {
59 59
60   - $this.addClass(defaultOpt.hideCls).wrap(wrapTag).change(function() {
  60 + $this.addClass(defaultOpt.hideCls).wrap(wrapTag).click(function() {
61 61 // radio button may contain groups! - so check for group
62 62 $('input[name="'+$(this).attr('name')+'"]').each(function() {
63 63 if( $(this).is(':checked') ) {

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.