drag and drop sortable list

drag and drop sortable list




<ul class="mysortable list">
<li id="1">Item 1</li>
<li  id="2">Item 2</li>
<li id="3" >Item 3</li>

</ul>

Hi 

I have drag and drop sortable list.When drag and drop Item 1 with item 2.They swap postion.
i want the text of id 1 after is been swapped with id 2.

I have tried            

alert( $("#1").text()); 


but this prints out Item 1. I want it to print out Item 2. which is the new text content of id 1.

Thanks in advance.