html checkbox checked true false
Hi all, Im very unfamiliar with html as i am a vb/.net dev (windows forms).I want the submit button to be disabled if the checkbox is false and enabled if the checkbox is checked. My function so far is as follows: function chkAGREEonclick() if(chkAGREE. checked true) Submit.disabled False checked"yes" and checked"true" are particularly bad as they imply that checked"no" and checked"false" will set the default state to beCan HTML checkboxes be set to readonly? How to handle checkboxes in ASP.NET MVC forms? Setting checked for a checkbox with jQuery? The checked property sets or returns the checked state of a checkbox. This property reflects the HTML checked attribute.true - The checkbox is checked. false - Default.