开发者

Qtip on input focus

I want to show Qtip when input get focus. Here is my code:

<script>
    function inputQtip(){
    alert("Test");
    $('#aerobot[title]').qtip({
        position: {
            my: 'right center',
            at: 'left center',
            target: $('.aerobot'),
        },
        show: {
            when: {
                target: $('#ae开发者_高级运维robot'),
                event: 'focus',
            },
        }
    });
}
inputQtip();
</script>

And its not working. Alert popups. So function is executing. What is wrong with this qtip ? :(


there's nothing wrong with this code. you just forgot to wrap it in document.ready function.

$(document).ready(function() {
    inputQtip();
});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜