Find and set checked true and call click event dynamically.

Find and set checked true and call click event dynamically.
 
  1. var liIndex = 6;  
  2.                        $(".containerul li:nth-child(" + liIndex + ")").find(".boxcheckbox").prop('checked'true);  
  3.                        $(".containerul li:nth-child(" + liIndex + ")").find(".boxcheckbox").click();  
  4.   
  5. /here boxcheckbox is the class name of my check box.