Code: Select all
http://jsfiddle.net/FWLF3/1/We use it for Ajax search, the DIV comes up and results pop in as they type, but when they click away, it's not going away.
I don't know if there is a non JS way to do it.
I've found methods where when you click away from the DIV and it disappears - problem there is this DIV must stay on, so that if they search, it works. So I am thinking if there was a Button/Link in presearch.php that runs the queries, could a link in there, make it is disappear, or clear something.
I don't think the DIV called "hintbox" should disappear, as if it does, and you go to do a search again, I don't think it would return, as it's now "hidden", unless a "fade" might work, and when you enter into the search again, it would just activate again.
I just need something, most likely in the search popup itself that says "close", that would make it go.