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

Changing the class of an input box dynamically

Status
Not open for further replies.

Lbob

Programmer
May 23, 2003
157
0
0
GB
Hi

I'm trying to change the class of an input box when a user clicks on a button.

So far I've got

document.form.elements("Txt").class = "norm"

but it doesn't work

Any help would be greatly appreciated

Cheers
Lbob
 
>[tt]document.form.elements("Txt").class = "norm"[/tt]
[tt]document.form.elements("Txt").class[red]Name[/red] = "norm"[/tt]

 
Excellent, thanks, worked a treat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top