If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #274460

    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.


    Hey JeremK!

    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



    Hello Ismael,

    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.



    Comment/remove this line in http://www.jeremieleroy.com/js/custom.js:

    jQuery('input:text').kriesi_empty_input();	// comment form improvement


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.