21286 Posts in 5733 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1065 Views |
-
Little things like search field onclick

4 March 2009 at 3:40pm
How would I go about putting code to seach field onclick? Like currently, the default term is 'Search' and what i am trying to do is clear that field on click. Or where to change so that the search field is blank by default. Any pointers would be helpful. Thanks,
George
-
Re: Little things like search field onclick

4 March 2009 at 4:22pm
I would recommend that you use jQuery for this. Any jQuery tutorial should be able to guide you through that.
To get your javascript files into your site, put code like this into the init() method of the Page_Controller class.
Requirements::javascript('jsparty/jquery/jquery.js');
Requirements::javascript('mysite/javascript/searchExtras.js');
| 1065 Views | ||
|
Page:
1
|
Go to Top |


