469,575 Members | 1,651 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

outputting html through javascript

Markus
6,050 Expert 4TB
Little problem here.

How would i go about outputting "»" through giving something a value.

i.e.
Expand|Select|Wrap|Line Numbers
  1.   if(validateEmail(emailValue) === false){
  2.     emailStyle.color = "red";
  3.     emailText.value = "&raqou; Invalid Email!";
  4.   } else {
  5.     emailStyle.color = "green";
  6.     emailText.value = "» Valid Email!"
  7.   }
  8. }
  9.  
Using that would just output the text "»"

How do i get it as html?
Nov 11 '07 #1
1 1094
gits
5,390 Expert Mod 4TB
hi ...

could you try innerHTML instead of setting the value?

kind regards
Nov 11 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Tom | last post: by
8 posts views Thread by Kathleen Dollard | last post: by
3 posts views Thread by BakedBean | last post: by
2 posts views Thread by Ed Jay | last post: by
2 posts views Thread by andy.z | last post: by
5 posts views Thread by Steve | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.