On 08/08/06, Dan Atkinson <[EMAIL PROTECTED]> wrote:
>
> Ah, bugger it!
>
> It seems that my 'pseudocode' actually worked (albeit partially).
>
> Hiding the selectbox is no longer a problem, but when I actually click on an
> option and move the mouse lower than the limits of the td it is contained
> within, the select box disappears.
>
> Also, the innerHTML is undefined, so I'll have to dig up something which
> gets the selected option.
> --


What I use is hover, and then a check to see if the mouse is over a select:

.hover(
        function()
        {
                // hide all other select boxes
                $(this).parents("table").find("select").hide();
                // show this select box
                $("select", this).show();
                $("span", this).hide();
        },
        function(e)
        {
                // fires when moving over a select in IE
                /[EMAIL PROTECTED]
                if(e.srcElement.nodeName.toLowerCase() == "select") return;
                @*/
                $("select", this).hide();
                $("span", this).show().css({display: "inline"});
                // focus on window (to prevent firing select.onchange with 
wheel mouse)
                window.focus();
        }
)

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to