Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Simple JS

Name: Anonymous 2007-08-29 0:10 ID:F5G/oKue

How do I make a link that changes the value of a textarea?

Like javascript:ref('12') and make the text area say "Referencing: 12"

Name: Anonymous 2007-08-29 0:31 ID:mJoVaoBQ

By learning JavaScript and relevant DOM functions.

Name: Anonymous 2007-08-29 5:42 ID:7KOPAiri

<TEXTAREA ID="lol" ...>...</TEXTAREA>

<A HREF="#" ONCLICK="document.getElementById('lol').value='VIP-quality'">fag</A>

Name: Anonymous 2007-08-29 6:44 ID:nVvC3dvg


<html>
<head>
<script type="text/javascript">

function ref(n)
{
   document.getElementById("ta1").value = "Referencing: "+n;
}
</script>
</head>
<body>
<textarea id="ta1"></textarea>
<a href="#" onclick="javascript:ref('12')">test</a>
</body>
</html>

Name: Anonymous 2007-08-30 6:55 ID:8zXRMZcd

You're all worthless. Thanks for the help. I've made more progress on my own. This is why I left forums in the first place, is because of 30-40+ yr old assholes that think it's funny to be fucking deuchbags. Nice guys nice. I hope I see you assholes bleeding on the street and when you say, Help me! I'll piss on your fucking face, and then shit in your mouth and watch you choke to death. Fuck you

Don't change these.
Name: Email:
Entire Thread Thread List