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

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -