Java Related Knowledge

Wednesday, September 15, 2004

Simple check box toggle (JScript)

<html>

<head>
<title>New Page 1</title>
<script language="javascript">
function toggleCheckBox()
{
if(document.hi.one.checked==true)document.hi.two.checked=true;else document.hi.two.checked=false;
}
</script>
</head>

<body>
<form name='hi'>
<input type='checkbox' name='one' onClick='toggleCheckBox()' value="ON">
<input type='checkbox' name='two' value="ON">
</form>
</body>

</html>


Posted by Wasif at 1:40 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Home
Subscribe to: Post Comments (Atom)

Pages

  • Home

Blog Archive

  • ►  2013 (1)
    • ►  March (1)
  • ►  2012 (17)
    • ►  December (6)
    • ►  November (11)
  • ►  2010 (3)
    • ►  December (2)
    • ►  March (1)
  • ▼  2004 (17)
    • ▼  September (17)
      • Changing the authentication mode in SQL Server
      • Microsoft SQL Server 2000 Authentication Mechanisms
      • Problem connecting MS SQL Server using JDBC
      • Solution for project folder not loading in tomcat 5
      • project folder not loadin in the tomcat 5.0
      • Tomcat service not starting.
      • HTML Events Objectwise
      • Important links
      • HTML DOM Document Object
      • HTML DOM Window Object
      • HTML DOM Select Object
      • Select Box One (JScript)
      • Select Box One (JScript)
      • Using a prompt box and Document Write (JScript)
      • Using Confirm box (JScript)
      • Multiple Parameters passing to function (JScript)
      • Simple check box toggle (JScript)
Simple theme. Powered by Blogger.