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. 

For example.. 

```
<div>
            <div>1</div>
            <div>2</div>
            <div>3</div>
            <div>4</div>
            <div>5</div>

        </div>

```

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

```
 <div>
        <div>1</div>
        <div>3</div>
        <div>2</div>
        <div>4</div>
        <div>5</div>

    </div> 

```

Thanks for help.