Button Enable Disable Script

In this Button Enable Disable Script is used to enable or disable a Button on this browser or client side.

Demo :



               

Example :

You just click in disable button then ask confirm message is like "Are You Sure?, You Want to Disable This Button". if you click which confirm ok Button will be disable. This will happen again and again based on your enable and diable clicking buttons.

Code :

Following code is disable and enable for a Button.If you need to copy and use it.


<?php
function disable_enable_fun()
{
  if(document.getElementById('button').value =='Disable')
  {
    document.getElementById('dis_enable_button').disabled = true;
    document.getElementById('button').value ='Enable';
  }
  else
  {
    document.getElementById('dis_enable_button').disabled = false;
    document.getElementById('button').value ='Disable';
  }
  }
?>

In the above disable_enable_fun() function have using to disable and enable for a Button.When you click in the Disable button will execute disable_enable_fun() function and in the Button will disabled and button value will change to Enable.

Free Download Script:

If you need Button Enable Disable Script click and download from following zip file.

Download




Content