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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript, change the font-family of a textarea 1

Status
Not open for further replies.

jslmvl

Vendor
Jan 26, 2008
268
GB
Using Javascript, how to change the font-family of a textarea:
Say, change
<textarea name="name1" id="id1" style="font-family:Verdana;"></textarea>
to
<textarea name="name1" id="id1" style="font-family:Monospace;"></textarea>

Thank you in advance!
 
[tt]document.forms[0].elements["name1"].style.fontFamily="Monospace";[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top