html - How to set checkbox value non editable once we selected? -
i have html page consists of 10 checkboxes. when tick on checkboxes , submit form,the checkbox values stored in database. need help, when take same html page after submission, want view ticked checkboxes ticked , ticked checkboxes couldn't unticked. please .
<form action="post.aspx" method="post" target="_blank" > <td><input id="c101" value="101" type="checkbox" runat="server"/></td> <td><input id="c102" value="102" type="checkbox" runat="server"/></td> <td><input id="c103" value="103" type="checkbox" runat="server"/></td> </tr>
following code in code ,
checkbox1.enabled = true; checkbox1.checked = true;
following code in javascript,
$("input:checked").click(function(){ return false; });
Comments
Post a Comment