I m a new comer for stack overflow. I need your help. I got jquery resize widget from online and tried to implement my source. It works fine only one widget. If i put the same resize function to multi widget in the same page, it gets overlapped while a widget resize. And one more information when i resize last widget, its not affected (overlapped) to others.
My code CSS
<style>
.widget1
{
width:150px; min-height:120px; border:1px solid green;
}
.widget2
{
width:150px; min-height:120px; border:1px solid blue;
}
.widget3
{
width:150px; min-height:120px; border:1px solid black;
}
</style>
Js Used
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<script>
$(function() {
$(".drag_resize").draggable().resizable();
});
</script>
Html
<div class="widget1 drag_resize">
Dummy contents 1
</div>
<div class="widget2 drag_resize">
Dummy contents 2
</div>
<div class="widget3 drag_resize">
Dummy contents 3
</div>