I want to keep a checkbox disabled when page loads.

below to the checkbox I want to keep a button with label "Enable" . When clicked this will enable the checkbox.


My question:

<input type="checkbox" name="chkbox" disabled value="">

<input type="button" name="button" value="enable" onclick="callMe();">



when clicking on the button I want to write a javascript callMe() function which will enable this checkbox.

Can I write this way document.forms[0].chkbox.disable=false;

Is this the proper way to code this ?