Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what can i do to make this work ?

Status
Not open for further replies.

jini01

Programmer
Feb 20, 2007
1
US
<input name="go" type="button" id="go" value="Get Code" onclick="document.getElementById('codetxt').innerHTML = gen_code(document.getElementById('store').value);" />

</p>

<p>Code to put on your site:<br />



<textarea name="codetxt" cols="80" rows="14" id="codetxt">



</textarea>
 
I have NO idea.

[small]"I see pretty girls everywhere I look, everywhere I look, everywhere I look. - Band song on movie "The Ringer"[/small]
<.
 
What do you want it to do? You're missing MANY things in your code.

Lee
 
It works for me.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Fillin Textarea</title>
</head>

<body>

<form>
<input name="go" type="button" id="go" value="Get Code" onclick="document.getElementById('codetxt').innerHTML = gen_code(document.getElementById('store').value);" />

  

  <p>Code to put on your site:<br /></p>

    
<input type="hidden" name="store" id="store" value="pig">
<textarea name="codetxt" cols="80" rows="14" id="codetxt"></textarea>
</form>

<script>
function gen_code( vStr ) { return "<b>" + vStr + " in a poke.</b>"; }
</script>

</body>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top