Sunday, 15 April 2012

how to trigger dragging of image with drag of other image using jquery -



how to trigger dragging of image with drag of other image using jquery -

i working jquery dragging of images. below code

$( "#imgmaster" ). draggable ({ axis: "y", containment:[0,170,0,430], start: function(event, ui) { $("#imgfrontleft").trigger('draggable'); } }); $( "#imgfrontleft" ). draggable ({ axis: "y" , containment:[0,162,0,290], });

my requirement that, on drag of #imgmaster, #imgfrontleft must dragged. both images dragged independently. kindly help me , how meet requirement.

take fiddle link help reply synchronizing 2 images dragging. can utilize

$("#imgfrontleft").css('left',ui.position.left); $("#imgfrontleft").css('top',ui.position.top);

in code drag images, hope help more.

jquery jquery-ui jquery-draggable

No comments:

Post a Comment