I would like to ask if it is possible to have a text inside a textbox that fades when you click on the textbox? Right now I use 1 label and 1 textbox on my form. The label says what to write in the textbox i.e "Name". The user then knows what to write in that textbox. But I would like to use some text inside the textbox to show the user what to write so when the user clicks on the textbox it will erase/fade the text. It should not be a initial value otherwise if the user doesnt write anything and submits the text will become the value. I hope my question is understandable
Solved! Go to Solution.
I am O365 but it should be the same on Premises.
NWF$('#'+txtTitle).attr("placeholder", "My Hint");
Remark, this is working in recent browsers as PlaceHolder is a HTML 5 Attribute