开发者

show div on pointer jquery

does anybody have jquery code that will show a div wh开发者_高级运维ere the pointer is on click event?

I want to build a simple context menu but can only find a javascript example.


you mean like?

$(function(){

    $('a.foo').click(function(){
       $('div.bar').show();
    });

});


a little example on jsfiddle.

$(document).ready(function() {

    $('#showText').click(function() {
        $('#toShow').show();
    });

    $('#hideText').click(function() {
        $('#toShow').hide();
    });

});

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜