jQuery Input Text Background Value e.g. "Username" On Click Disappear and User Value Can Be Entered

Posted on 2011-10-16
Last Modified: 2012-05-12
Hi Experts,

Thanks for reading. I'm looking for a solution to my text fields via jQuery similar to's login form with the username and password fields. When you click on the username field, styles change, and the username text is still there, but when a value is entered from the user, the background text disappears, and if all text is deleted, username reappears. Is this a plug-in? How I do this with a textarea, too?

Question by:SevenAteAnthony
    LVL 81

    Accepted Solution

    LVL 1

    Author Closing Comment


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Shoutout to Emily Plummer ( for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
    I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
    Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now