Hi!

I'm making a pop-up Google search-box for my site.
However it's something wrong with my jQuery-code. Can you help me?

js:
        if (
        $('#Search').hover() || $('#Google').focus() )
                {$('#Google').show() }
        else {
                $('#Google').hide()
                };

html:
  <div id="Search">
  <a href=#>Search site</a>
    <div id="Google" >
     Google search..
    </div>
  </div>

As it is, #Google is displayed all the time.

I've had success with only hover, but if the user clicks in the opened
search-area, I want the pop-up not do disappear. So, is focus the
thing to use then?

Reply via email to