title: Moving node Div Up and Down using Javascript/Jquery
body: <p>I was wondering is there a way in Javascript to just move node div element up and down without id. When the item is selected and right clicked then there would be Move Up and Move Down option,now on Move Up click it should Move Up in div. </p>
  
  <p>For example.. </p>
  
  <pre><code>&lt;div&gt;
              &lt;div&gt;1&lt;/div&gt;
              &lt;div&gt;2&lt;/div&gt;
              &lt;div&gt;3&lt;/div&gt;
              &lt;div&gt;4&lt;/div&gt;
              &lt;div&gt;5&lt;/div&gt;
  
          &lt;/div&gt;
  </code></pre>
  
  <p>Suppose i right clicked on div 3, then Move Up option will be there so on click of Move Up it should Move Up and new sequence should be</p>
  
  <pre><code> &lt;div&gt;
          &lt;div&gt;1&lt;/div&gt;
          &lt;div&gt;3&lt;/div&gt;
          &lt;div&gt;2&lt;/div&gt;
          &lt;div&gt;4&lt;/div&gt;
          &lt;div&gt;5&lt;/div&gt;
  
      &lt;/div&gt; 
  </code></pre>
  
  <p>Thanks for help.</p>