Prasad
Prasad

Reputation: 59491

jquery select() problem in IE(8)

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?

Upvotes: 1

Views: 2151

Answers (1)

Doug Neiner
Doug Neiner

Reputation: 66191

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();
});

Upvotes: 1

Related Questions