Jump to content

Help needed


Gruzin

Recommended Posts

[code]<p id="para">bladieblahblablabla.</p>
<input type="text" name="textField">[/code]

[code]document.getElementsByName("textField")[0].setAttribute('value',document.getElementById('para').nodeValue);[/code]

That 'should' work. As long as you only have one input element named 'textField'..
Link to comment
https://forums.phpfreaks.com/topic/16793-help-needed/#findComment-70660
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.