javascript - How to get li chechbox checked status in jquery -
how li checkbox
checked status in jquery.
i want one, throw me undefined.
$('#ul'+$id+' li:nth-child('+_index+') span input:checkbox').attr("checked")
can out of one.
use .is(':checked')
on jquery object.
$('#ul'+$id+' li:nth-child('+_index+') span input:checkbox').is(':checked');
Comments
Post a Comment