- This topic is empty.
July 16, 2010 at 12:05 pm #29646tomasjj11Member
Any help will be highly appreciated.July 17, 2010 at 11:05 pm #79895MakeshiftMember
This should be what you’re looking for.September 16, 2010 at 8:44 am #79483tomasjj11Member
Hi there I fixed the problem. I didn’t use makeshift’s Jquery suggestion thank you though.
What this code says is that if onfocus (when you click on the textbox) the value attribute = Name then it gets overwritten with an empty string. If onblur (when you click out of the textbox) the value = the empty string it gets over written with Name but if the user has typed something before they clicked out of the box nothing happens and the text stays as they typed it.
This is how I used it.
If you want to see a working site where I used this go here
I’m not sure what other fields this can be used on I presume any that a user can type something into. I guess it could be used for password as well.
I hope this helps.