Issue with jQuery setting checkboxes as checked in IE6 (not showing as checked?)

Posted by Jonathon Joyce on Stack Overflow See other posts from Stack Overflow or by Jonathon Joyce
Published on 2010-04-01T15:43:26Z Indexed on 2010/04/01 16:23 UTC
Read the original article Hit count: 358

Filed under:
|
|
|
|

The Code:

var lstInstanceIds = getData.lstInstanceIds.split(',');
    for(var i=0; i<lstInstanceIds.length; i++) {
        var value = lstInstanceIds[i];
        $('input[value=' + value + ']').attr('checked','checked');
    }

So all i'm doing is looping a list and setting the attribute checked as checked where the values meet.

This works fine in Chrome, Firefox, IE7/8, Safari. But not in IE6...

© Stack Overflow or respective owner

Related posts about ie6

Related posts about jQuery