I have a div element which can be draggable and I have a textbox inside that div element and when I drag the div element automatically the textbox size should increase along with the div.And I need to get the textbox X and Y positions so how do I do that?
This is what I have now:
Here is my ode:
<div class="demo">
<asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
</div>
This is my script for dragging:
<script>
$(function () {
$('.demo')
.draggable()
.resizable();
});
</script>
A
textareashould be specified in terms of rows and columns, according to the specs, but you can still style them with CSS:See here. Tested in Firefox, Chrome.
Also, if you need to get the X and Y coordinates, draggable has a
stopmethod which you can bind to: