Jquery write inside the draggable div -


i using jquery ui library. want give feature of writing text inside draggable div on single click. want when user single click div, cursor should appear , user can write text inside it.

pls suggest solution working code sample.

this sample code:-

<script>       $(function() {               $( "#dv1" ).draggable();              }); </script>  <div id="dv1"> <p>drag me around</p> </div> 

i built further on jesse's solution, swapping textarea paragraph when textarea loses focus. ensures can drag div after editing contents.

check out the fiddle!


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -