Hi!
I have some bug with the following page: http://jsbin.com/agedu/ Source code with some comments: http://jsbin.com/agedu/edit
The problem is that when typing something and doing the query to display search results, if I go back to the search page in my browser (Firefox 3.5 but it's the same thing with IE8) there isn't my search terms anymore.
It's replaced by grey text. This grey text that I only want to have when there isn't any filled text.
When I remove the jQuery code, if I do some search and press "go back" button on my browser the filled text is still present.
And even with this example page: http://mucur.name/system/jquery_example/
If I write some text, load some other URL in the address bar, and then press go back button, the filled text is still present, while it's not with my code.
So my question is: do you have any idea how to keep this text if filled?
There should be a way to detect if the input is filled and avoid replacing text if so.
It may come from browsers and how they deal with JavaScript but I'm not sure about it.