I am using the draggable function for the element using jquery..when I use this the click function is not working on that..why is that and how to remove this bug? pls help me
// Reizable and draggable for the YOUTUBE widget**************
$(function() {
$( "#yo开发者_Go百科utube" ).draggable(
{cursor: 'move'}
);
$( "#youtube" ).resizable({
ghost: true,
alsoResize: '#player',
handles: "n, e, s, w"
});
});
probably because the click event requires the mouse to go down and up. if you're dragging, that never fires. Try using the mousedown event instead.
精彩评论