The ultimate JavaScript solution for this annoying problem is
Just wrap the jQuery command in setTimeout . The interval can be very small, I use 10 milliseconds and it works fine. The delay is so small that it is almost not detected by end users.
setTimeout(function(){ $("#radio-element").attr('checked','checked'); },10);
This will also work with
$("#radio-element").trigger('click');$("#radio-element").attr('checked',true);$("#radio-element").attr('checked',ANYTHING_THAT_IS_NOT_FALSE);
Hackies ... Hackies ... Hackies ... Hackies ... Yes, I know ... this is a workaround from here ....
Lix May 24 '12 at 13:06 2012-05-24 13:06
source share