mboehler3 Posted December 4, 2009 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 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 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
Archived
This topic is now archived and is closed to further replies.