faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

17 of 36 people (47%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

How do I add text in a textarea by "clicking" an image or HREF?

Nov 27th, 2008 14:22
healthy man, dman, John Marc, Victor Tavares,


with javascript, not PHP.
<form name=form>
<textarea name=tx>test</textarea>
<a href="#" oncClick="document.tx.value='New text'">click me</a>
</form>
http://www.healthdothealth.com
http://www.healthxhealth.com
http://www.mesotheliomainmesothelioma.com
http://www.healthfirewall.com
http://www.flathealth.com
http://www.healthbodyguard.com