Page 1 of 1

Help with JS please.

Posted: Sat Sep 06, 2008 10:27 pm
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.

Re: Help with JS please.

Posted: Sun Sep 07, 2008 9:55 am
by jayshields

Code: Select all

this.validMessage = options.validMessage || '<img src="blabla.gif" />'
?

Re: Help with JS please.

Posted: Sun Sep 07, 2008 12:08 pm
by JakkyD
Nope comes out as text.

Re: Help with JS please.

Posted: Sun Sep 07, 2008 12:12 pm
by jayshields
What are this.validMessage and options.validMessage?

Re: Help with JS please.

Posted: Sun Sep 07, 2008 12:32 pm
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.