File Upload From Enable Disable Script

In this file upload form enable disable Script is used to enable or disable a file upload form on this browser.

Demo :



           

 

   

Example :

You just click in Disable button then ask confirm message is like "Are You Sure?, You Want to Disable This File Upload". if you click which confirm ok file upload text box 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 file upload text box.If you need to copy and use it.


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

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

Free Download Script:

If you need to file upload enable disable script click and download from following zip file.

Download




Content