Find and set checked true and call click event dynamically

Find and set checked true and call click event dynamically.
[js]
var liIndex = 6;
$(".containerul li:nth-child(" + liIndex + ")").find(".boxcheckbox").prop(‘checked’, true);
$(".containerul li:nth-child(" + liIndex + ")").find(".boxcheckbox").click();
[/js]
here boxcheckbox is the class name of my check box.

Leave a Reply

Your email address will not be published. Required fields are marked *

Serverless 360