Jquery select checkboxes inside a div element
<p>I have a checkbox inside a div element . I would like to mark the checkbox as checked whenevever i click the button .. The div element tag is as follows </p>

<pre><code>&lt;div class ="test123" style ="width:90px;"&gt;
&lt;input id = "chk1" type = "checkbox" value="on"/&gt;
&lt;/div&gt;
</code></pre>

<p>I am doing something like this , but its not working for me </p>

<pre><code>$(".test123 ").find("input:checked").each(function() {

//code to check the checkbox
</code></pre>

<p>});​</p>

<p>Please suggest.. </p>

<p>Nav.</p>
