jQuery drag & drop works in html

jQuery drag & drop works in html

Does jQuery drag & drop functionality work on HTML as well? I used button tags and used same drag & drop jQuery function to get it work. But unfortunately it does not work? Is it possible to call drag & drop functions for HTML buttons? I would be glad if you can help me. Here is the code that I used for that.

  1. <html>
  2.     <head>
  3.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  4.     <title>JSP Page</title>
  5.     <script src="jquery-1.4.2.js"></script>
  6.     <script src="jquery-ui.js"></script>
  7.     <script>
  8.         alert("inside script");
  9.         $().ready(function() {
  10.             alert("inside function");
  11.             $("#draggable2").draggable({revert: "invalid"});
  12.             $("#button2").draggable({revert: "invalid"});
  13.             $("#textarea1").droppable({
  14.                
  15.                  accept: function(d)  {
  16.                     alert("droppable");
  17.                     if((d.attr("id")=="button2")){
  18.                         return true;
  19.                     }
  20.                 }
  21.             });


  22.             alert("after script");

  23.         });


  24.     </script>

  25. </head>
  26. <body>
  27.     <h1>Hello World!</h1>
  28.     <input type="button" value="Help" id="button2" disabled="disabled">
  29.         <input id="submitme" type="submit" value="Send me your name!"><br>
  30.     <button id="button1" value="Draggable Yellow" name="draggable">drag me</button>
  31.      <textarea id="textarea1" rows="2" cols="20"></textarea
  32.      
  33.     <div id="draggable2">
  34. <p>Drag me around</p>
  35. </div>
  36. </body>


  37. </html>