How to restore checkbox state
<p>I have one buton on my jsp and clicking that button user will see jquery dialog box as popup,which is having several checkboxes.
That popup will also have two button save and cancel.</p>

<p>I would like to restore state of checkbox.for better understading please follow below steps</p>

<ol>
<li>user clicks on showpop button on the jsp page</li>
<li>user will now see jquery popup having several checkbox</li>
<li>user checks first and second checkbox from the popup and click on save button that result in closing popup</li>
<li>user again click on show popup button ,uncheck first check box and click on cancel button that also result in closing popup</li>
<li>and now from main jsp if user again clicks on show popup buton i would like to see two checkbox  checked but its showing one checkbox checked.</li>
</ol>

<p>any help would be much appreciated</p>
