Feb 24, 2006 #1 Lbob Programmer May 23, 2003 157 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 Jul 25, 2001 10,675 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 May 23, 2003 157 GB Excellent, thanks, worked a treat! Upvote 0 Downvote