jQuery Resizable not working (but Draggable is working)?
I am able to get the jQuery component, Draggable, to work, but can't do the same with Resizable. I went
here and downloaded the library with Draggable and Resizable functionality. My jQuery code looks like:
- <script type="text/javascript" src="Scripts/jquery-1.4.2.min.js"></script>
- <script type="text/javascript" src="Scripts/jquery-ui-1.8.1.custom.min.js"></script>
- <script type="text/javascript">
-
- $(function() {
- $(".resizable").resizable(
- {
- containment: 'window',
- ghost: 'true',
- maxHeight: $('#DraftsDueListGridView').css('height'),
- maxWidth: $('#DraftsDueListGridView').css('width')
- }
- );
- });
- </script>
The markup is as follows:
- <head runat="server">
- <style type="text/css">
- div.resizable
- {
- }
-
- div#draftsduelist
- {
- margin: 0px auto;
- height: 640px;
- width: 1170px;
- }
- </style>
-
- <title></title>
- </head>
-
- <body>
- <form id="form1" runat="server">
- <div id="draftsduelist" class="resizable">
- </form>
- </body>
It's strange because Draggable works just fine... Any suggestions on why this isn't working?