X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   onfocus making searc button not work (https://forum.x-cart.com/showthread.php?t=47612)

ARW VISIONS 05-18-2009 11:42 AM

onfocus making searc button not work
 
ok so I wanted to make the search button value change when the customer clicked in the search box.

had this

value="Product Search" onfocus="this.value=''" onblur="this.value='Product Search'"

worked fine, made the text disappear and re-appear as expected but then the search button stopped working.

pauldodman 05-19-2009 12:31 AM

Re: onfocus making searc button not work
 
What happens if you remove the onblur bit?

ARW VISIONS 05-19-2009 12:49 PM

Re: onfocus making searc button not work
 
thanks paul!!1 that worked


All times are GMT -8. The time now is 08:58 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.