H I O X INDIA
FREE Javascript
Google
Web hscripts.com
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

Java Script Source
List All
Date & Time
Calendar
Stop Watch script
Slide Show
Image Effect
Mouse Effects
Color Picker Tool
Dynamic Color
Random Generator
Select All
Form Validation
Textbox Counter
Dynamic Form select
Bookmark
Window / User Info
Security / Authenticate
Status Bar
Title Bar
Cursor Position
Country List
Calculators
Delete Repeated Values
Alphanumeric
Free Games





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 language=javascript>
function apply()
{
  document.frm.sub.disabled=true;
  if(document.frm.chk.checked==true)
  {
    document.frm.sub.disabled=true;
  }
  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" ></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



Usage

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





License
- This javascript (misspelled as java script)/HTML code is given under GPL License
- i.e. Free use for those who use it as it is.
- Free, if your modification does not remove our copyright information and links.
- Detailed License information can be found here
- You can purchase the script if your requirements does not meet GPL License terms.


privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com

Others