Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
If a check box is checked...
Old 05-21-2005, 08:50 AM If a check box is checked...
Bloodsyne's Avatar
Skilled Talker

Posts: 52
Trades: 0
How can I make another row in a table be displayed?

It's in a form, and when you check the checkbox for "display this blah blah", it brings up another input for the message to be displayed.. or that's what I want it to do.

Can anyone help me?
Bloodsyne is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-22-2005, 09:10 AM
Super Talker

Posts: 121
Trades: 0
Im not too sure what you mean but run this code and tell me if it is what you want.
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script language="javascript" type="text/javascript">
function toggle( targetId ){ //hides and shows elements
	if (document.getElementById){
		target = document.getElementById( targetId );
		if (target.style.display == "none"){
				target.style.display = "";
		} else {
			target.style.display = "none";
		}
	}
}
</script>
</head>

<body>

<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <input type="checkbox" name="checkbox" value="checkbox" onChange="toggle('hiddenRow');">
    More....</td>
  </tr>
  <tr id="hiddenRow" style="display:none;">
    <td>
			New Input: 
			  <input name="" type="text">
		</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
vegancoder is offline
Reply With Quote
View Public Profile
 
Old 05-22-2005, 09:11 PM
Bloodsyne's Avatar
Skilled Talker

Posts: 52
Trades: 0
Well, just looking at the code, it looks to be what I'm looking for. I'll try it out later, next time I continue coding.

Thanks!
Bloodsyne is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to If a check box is checked...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11453 seconds with 12 queries