Apostrophe in a "value field" inside an "Input tag"
In the folowing Input tag I am trying to get the apostrophe in "Friends" to appear and it almost works the way it is but when I first load the page the "\" (backslash) also shows up. If I click in the field (onfocus) the words "Friend\'s Email" disappear as they are supposed to. Then when I click somewhere else
(onblur) it comes back like this "Friend's Email" which is the way I want it to appear when the page first loads. Is this a browser problem or something else I am missing?
Aha! Of course! That means it has to be different in both places. That is, "& #39;" in the HTML part of the Input tag and then "\" in the javascript part of the tag. This is what stumped me because I assumed they had to be the same. (They are the same actually, just different.
Bookmarks