You need to sign in to do that
Don't have an account?
Naresh Krishna.ax1176
Default value in apex:inputText
Hi,
How to populate a default value in <apex:inputText> .So that when user enters the text box ,the value should disapper.
(like <input type="text" placeholder="Search " in html />).
Can anyone please suggest me on how to implement this in salesforce apex.
Thanks in advance.
Hi,
You can try below code
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Nice solution Ankit, however I would recommend using onfocus and onblur instead of onclick and onchange, respectively. Otherwise if you click in and click away without typing anything, it will stay blank. Focus and blur will resolve this though.