Feb 24, 2006 #1 Lbob Programmer Joined May 23, 2003 Messages 157 Location 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
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
Feb 24, 2006 #2 tsuji Technical User Joined Jul 25, 2001 Messages 10,675 Location US >[tt]document.form.elements("Txt").class = "norm"[/tt] [tt]document.form.elements("Txt").class[red]Name[/red] = "norm"[/tt] Upvote 0 Downvote
>[tt]document.form.elements("Txt").class = "norm"[/tt] [tt]document.form.elements("Txt").class[red]Name[/red] = "norm"[/tt]
Feb 24, 2006 Thread starter #3 Lbob Programmer Joined May 23, 2003 Messages 157 Location GB Excellent, thanks, worked a treat! Upvote 0 Downvote