views:

209

answers:

2

Hi All !!!

There is a very strange problem with jQTransform and jQery 1.4.2.

When I use the jQTransform plugin on any form my checkboxes stop working appropriately.

This is the behavior:

  • The first click on a checkbox, marks it
  • From that point on i need to click it twice to unmark / mark it

I did a some Google search before creating this question and I found this jQuery Forum Question/Answer

The solution won't work for me because turning to lower versions of jQuery is not an option.

Does anyone know how to fix this problem using jQtransform and jQuery 1.4.2 ???

I can't figure what changed between versions to make this new "behavior" on jQuery 1.4.2

IMPORTANT: This only happens in IE. As usual Firefox is working just fine.

A: 

seems lite there is bugs all over the place i worked around it like this in the clickhandler for checkbox - if you put an alert above teh change trigger you see it doesnt change - so just check that if i didnt change you do it manually... quick and dirty but worked

//make my own checkpointvariable
              firstONE=inputSelf.checked;    


  //only original row
$input.trigger('click').trigger("change");
//second line of checking
 secondOne = inputSelf.checked;
 if(firstONE==secondOne)
  inputSelf.click();
 //for some strange reason - when it doesnt change i change it  instead...

thats all it took...

tom P
A: 

awesome thanks for the tip

kevin