Reputation: 5982
I am quite new in javascript/jquery. I am making resizable divs using jquery-ui-resizable. Here I have created the fiddle but can't figure out why jquery ui resizable is not working.
<div class="container">
<div class="left-container">
</div>
<div class="right-container">
<div class="child first">
</div>
<div class="child second">
</div>
</div>
</div>
$(".child").resizable({
//"handles": "w, e"
})
Any help would be appreciated.
Upvotes: 1
Views: 696
Reputation: 336
on the following link:
first clear the html and replace it with:
<div></div>
then in the style sheet replace it with:
border: 1px solid black;
padding: 5px;
width: 50px;
height: 150px;
margin: 10px;
and finally script code:
$("div").resizable()
almost done...
Upvotes: 2
Reputation: 14992
You must add a jquery-ui theme in order for this to work.
Try this line of code:
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
Upvotes: 1