开发者

Firing up a tooltip

开发者 https://www.devze.com 2023-03-03 20:25 出处:网络
Ok so i have this pageand if you look at the second dropdown...i want to fire up a tooltip or something when the user tries to select the second dropdown before the fire...otherwise i do the slidetogg

Ok so i have this page and if you look at the second dropdown...i want to fire up a tooltip or something when the user tries to select the second dropdown before the fire...otherwise i do the slidetoggle

$('.real_business_select .trigger').click(function(){ 
    if($("#industry_category_id").val() != ""){
        $(this).parent().parent().toggleClass('select-active');
        $(this).parent().parent().children('.drop-down').slideToggle();
    }else{
        //fire some tooltip....any ideas
    }
    return false;
});

any ideas on a good simple solution....im trying to 开发者_开发问答find a good solution that will only fire when i need it too and not everytime the user hovers over the element..any ideas


You might want to take a look at qtip2. It's a jQuery addon that does wonderful things. You could provide any event as tooltip activators.

0

精彩评论

暂无评论...
验证码 换一张
取 消