Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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:

    http://www.jeremieleroy.com/wcup/test2.php

    As soon as the input with “this is a test” as value is clicked, the input is blank.

    #274507

    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

    Regards,
    Ismael

    #274523

    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.

    #274668

    Hi,

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

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

    Regards,
    Josue

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

You must be logged in to reply to this topic.