If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Tagged: input type text
I am currently using a few input type=text elements on my website.
I define the value attribute but as soon as the element is clicked the text is lost.
I am not able to find out why the value is lost.
Here is an example:
As soon as the input with “this is a test” as value is clicked, the input is blank.
Thank you for visiting the support forum!
Instead of using the value attribute, use the placeholder attribute. Please refer to this link for more info: http://www.w3schools.com/tags/tag_input.asp
Thank you for your support.
Actually you might have mis-understood my request. I know about the “placeholder” attribute.
But here I want the field to be pre-populated. the problem is that when clicking in it, the value disappears instead of placing the cursor where the user clicked.
You must be logged in to reply to this topic.