[Solved] Moving div on click [closed]


You can do it like this:

$(".layout_theme").click(function(){

    $(".file_uploader").animate({
        left: $(this).offset().left - parseInt($(this).css("margin-left")) + "px",
        top: $(this).offset().top + $(this).height() - parseInt($(this).css("margin-top")) + "px"
    }) 
});

Check it your here: http://jsfiddle.net/zd78e8a3/1/

1

solved Moving div on click [closed]