[jQuery] Array in get help

[jQuery] Array in get help


I have an checkboxes in form and I have unique ID for each of them...
and something like this :
var x = new Array ( 'idx1','idx2' );
and I need to do something like this:
for ( var i in x )
{
$('#x[i]').attr('checked', true); --> this isn't working
}
....I do not have any idea how to change an array like some element....