Roundcube Community Forum

Release Support => Release Discussion => Topic started by: jeffshead on July 30, 2010, 10:35:12 AM

Title: Search - add text to input field
Post by: jeffshead on July 30, 2010, 10:35:12 AM
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..."
Title: Search - add text to input field
Post by: SKaero on July 30, 2010, 11:07:08 AM
It could be done by modifying the RouldCube core, it maybe possible with JavaScript or a skin modification aswell.
Title: Search - add text to input field
Post by: corbosman on July 31, 2010, 10:43:49 AM
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.