Help with JS please.

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
JakkyD
Forum Newbie
Posts: 4
Joined: Tue Jul 08, 2008 2:37 pm

Help with JS please.

Post by JakkyD »

Hi all. I'm using this thing called LiveValidation.

When the form is correct it displays this:

Code: Select all

this.validMessage = options.validMessage || 'Thankyou!'


Is there anyway I can add html where Thankyou is, i.e. <img src="blabla.gif" /> etc..

Thanks.

I've tried document.write but it doesnt work.
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Help with JS please.

Post by jayshields »

Code: Select all

this.validMessage = options.validMessage || '<img src="blabla.gif" />'
?
JakkyD
Forum Newbie
Posts: 4
Joined: Tue Jul 08, 2008 2:37 pm

Re: Help with JS please.

Post by JakkyD »

Nope comes out as text.
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Help with JS please.

Post by jayshields »

What are this.validMessage and options.validMessage?
User avatar
andyhoneycutt
Forum Contributor
Posts: 468
Joined: Wed Aug 27, 2008 10:02 am
Location: Idaho Falls

Re: Help with JS please.

Post by andyhoneycutt »

You've given us no context to work with. Please supply us with an example that will show how your object works, at least.
Post Reply