I am working with jquery for dragging of images. Below is my 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 is that, on drag of #imgMaster, #imgFrontLeft must be dragged. Both the images are dragged independently. Kindly help me with , how could i meet my requirement.