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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -