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();
});
});
精彩评论