How to hide jquery ui slider on blur?

Posted by Leon on Stack Overflow See other posts from Stack Overflow or by Leon
Published on 2009-08-23T18:33:10Z Indexed on 2010/04/22 17:43 UTC
Read the original article Hit count: 369

Filed under:
|
|
|

I have an image that opens ui slider div on click and allows users to set value by draging handle. What Im trying to do now is hide that handle when user click anywhere else on the page but regular .blur event doesn't seem to work.

$("#openPriceToSliderGif").click(function(){
        $("#slider-vertical").show();
        $("#slider-vertical").focus();
    });
    $("#slider-vertical").blur(function () {
         $("#slider-vertical").hide();
    });

© Stack Overflow or respective owner

Related posts about jquery-ui

Related posts about slider