mboehler3 Posted December 4, 2009 Report Share Posted December 4, 2009 Hi, my page here: https://www.surpayroll.com/surechoice/accountant_access.asp?. For the Log In part at the top, I have a script in there that makes the input value disappear upon being clicked on. I want to make it so that the value will reappear if you do not enter any text. I've seen this done on sites before but couldnt find one as an example. But how the page is currently, once you click in the input box, the value will disappear completely. Is there a script that will return the value if the user does not enter any text? Link to comment Share on other sites More sharing options...
mboehler3 Posted December 4, 2009 Author Report Share Posted December 4, 2009 Hi, my page here: https://www.surpayroll.com/surechoice/accountant_access.asp?. For the Log In part at the top, I have a script in there that makes the input value disappear upon being clicked on. I want to make it so that the value will reappear if you do not enter any text. I've seen this done on sites before but couldnt find one as an example. But how the page is currently, once you click in the input box, the value will disappear completely. Is there a script that will return the value if the user does not enter any text?Nm, found a script here:http://perishablepress.com/press/2008/07/2...e-inputs-focus/ Link to comment Share on other sites More sharing options...
Ingolme Posted December 4, 2009 Report Share Posted December 4, 2009 You would test if the field is empty upon the blur event. If it is, then you can put some text in there. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now