Roundcube Community Forum

 

Search - add text to input field

Started by jeffshead, July 30, 2010, 10:35:12 AM

Previous topic - Next topic

jeffshead

Is there a way to add default text to the search mail input box?

I would like to add something like the following:

onfocus="if(this.value==Search current folder...) this.value='';"
onblur="if(this.value=='') this.value='Search current folder...';"
value="Search current folder..."

SKaero

It could be done by modifying the RouldCube core, it maybe possible with JavaScript or a skin modification aswell.

corbosman

Should be easy with a plugin. Check out jquery focus and blur event handler functions. You can bind them to the search box and presto.

That way you dont have to modify anything.