0

I have DOM like this:

<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="style.css">
  </head>

  <body>
   <div>
     label <input id="field_input"> 
   </div> 
  </body>
</html>

When I put value to this field, for example: hello

enter image description here

then I want to highlight this label - hello element and drag and grop this element label <input id="field_input"> with inserted value hello to somewhere. Somewhere this is the second question Please help me out.

Please no HTML5 solutions.

3
  • Sorry DRAG insted drug Commented Aug 19, 2015 at 11:26
  • 1
    Lay off the drugs and take a look at stackoverflow.com/questions/863998/… and stackoverflow.com/questions/4585571/… Commented Aug 19, 2015 at 11:31
  • Do you mean the user should be able drag and drop it or that the code should move the label to a different part of the HTML page? Commented Aug 21, 2015 at 11:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.