tags:

views:

262

answers:

1

jquery's select() is not working in IE, but its working fine in Firefox and Chrome.

What may be the problem with select() in IE, particulary IE8?

+1  A: 

IDEA 1

Try adding a click trigger to your checkbox:

$(selector_to_checkbox).click(function(){ $(this).change() });

It is possible IE isn't properly triggering the change event.

IDEA 2

Try explicitly blurring the checkbox before calling .select

$(selector_to_checkbox).change(function(){
    $(this).blur();
    $(selector_to_textbox).select():
});
Doug Neiner
thanks for the hints @dcneiner, its the problem with the change event of checkbox in IE.
Prasad