Search HouseOfScripts.com

 

All Scripts        JavaScripts        ASP Scripts        Other Scripts

 

  Enable/Disable buttons according to the checkbox asp, send, email, cdonts, link, recordset, hyper, hyperlink, create, list, box, dependant, dynamic

One of the requests that we received was how disable button based on the checkbox. Here is the script.

Click here if you are looking for a scripts how to disabled/enabled radio buttons groups according to the Selected Radio Button. I also have codes to enable/disable buttons based on Menu Selection.

Enable/Disable Buttons according to the checkbox

Click here to Enable/Disable Button

<HTML>
< HEAD>

<SCRIPT LANGUAGE="JavaScript">

function Disab() {
frm=document.forms[0]
if(frm.cbox.checked)
{frm.Button1.disabled=true}
else {frm.Button1.disabled=false}
}

</SCRIPT>

</HEAD>
<BODY TEXT="000000" BGCOLOR="FFFFFF">

<form>
<div align="center">
<input name="cbox" type="checkbox" id="cbox" value="checkbox" onClick=Disab();>
Click here to Enable/Disable Button</div>
<p align="center">
<input type=button onClick="alert('Button pressed!')" value="Button" name="Button1">
</form>
</BODY>
</HTML>

 

 


Home       Scripts       Active WebTools       Web Templates       Forum       Tools        Hosting       Questions/Comments       Add/Request