JavaScript Scripts





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Free Java Script Codes
Javascript List All
Slide Show Slide Show
Ad Display Ad Display
Image Effect Image Effect
Animated Image Effects Animated Image Effects
Form Validation Form Validation
Color Picker Tool Color Picker Tool
Formatting Forms Formatting Forms
Select All Select All
Dynamic Form Select Dynamic Form select
Dynamic Color Dynamic Color
Dynamic Color Calendar
Textbox Counter Textbox Counter
Alphanumeric Alphanumeric
Date Time Script Date & Time
Stop Watch Script Stop Watch script
Delete Repeated Values Delete Repeated Values
Pagination Pagination
Random Generator Random Generator
Animated Text Animated Text
Cursor Position Cursor Position
User Info Window / User Info
Security Security / Authenticate
Bookmark Bookmark
Mouse Effects Mouse Effects
Title Bar Title Bar
Status Bar Status Bar
Country List Country List
Free Games Free Games
Calculators Calculators
 

Enable Submit Button JavaScript


About
This javascript will help you to enable or disable submit button whenever you click the checkbox.


Features
a) You can enable or disable submit button with the help of checkbox using javascript
b) Just copy the code into your page and use it.

Preview
I agree terms and conditions

©hscripts.com


Code
Javascript
<!--   Script by hscripts.com          -->
<!--   Copyright of HIOX INDIA         -->
<!-- More scripts @ http://www.hscripts.com -->

<script type="text/javascript">
function apply()
{
  document.frm.sub.disabled=true;
  if(document.frm.chk.checked==true)
  {
    document.frm.sub.disabled=false;
  }
  if(document.frm.chk.checked==false)
  {
    document.frm.sub.enabled=false;
  }
}
</script> 

<!-- Script by hscripts.com -->


HTML Code
<!-- Script by hscripts.com -->

<form name="frm">
<table style="border:solid green 1px">
<tr><td align=center><input type="checkbox" name="chk" onClick="apply()"></td></tr>I agree Terms and Conditions
<tr><td align=center><input type="button" name="sub" value="submit" disabled></td></tr>
<tr><td align=center>&copy<a href="http://www.hscripts.com" style="color:#3D366F;text-decoration:none;cursor:pointer;font-size:13px">hscripts.com</a></td></tr></table>
</form>

<!-- Script by hscripts.com -->

Release Date - 07-04-2008
Get free version without ©copyright link for just 5 price

For customization of this script or any script development, contact us at support@hscripts.com


Usage
a) The above program is used to enable the submit button. The checkbox is checked, to enable the sumbit button otherwise its disabled.
b) The function apply() is called to enable the submit button.
c) Copy the code into your page and use it.



License
- The javascript (misspelled as java script) is given under GPL License
- i.e. Free use for those who use the codes as it is.
- Free, if your modification does not remove our copyright information and links.
- Click Here for detailed license information.
- You can purchase the script if your requirements does not meet our GPL License terms.
Other Links

web hosting