what's syntax for uncheck the checkbox for in specific row?

Posted by Annie Chen on Stack Overflow See other posts from Stack Overflow or by Annie Chen
Published on 2010-04-01T14:57:19Z Indexed on 2010/04/01 15:03 UTC
Read the original article Hit count: 275

Filed under:
|
|

I'm new to JQuery, i want to uncheck certain row in the repeater grid.

I got this work, this will uncheck all checkbox for me.

$('span.chkIncRows input').attr('checked', false);     

This works for me, if I want to uncheck row #2 checkbox from the repeater, without passing row number.

$('span.chkIncRows input')[2].checked =false;           

I don't know the syntax to uncheck the checkbox, if i want to pass in the row number into checkbox.

For example: I really want to do something like this, but it doesn't work.

$('span.chkIncRows input')[rowNumber].checked =false;  

Thanks advance for your help. Annie

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about syntax