Jquery select table rows and group them
<p>I have a table that has a list of employees. I want to be able to create a new department and drag and drop employees into each department. Once an employee has been assigned to a dept, the dept column in the "employeedept" table has to get updated with the dept value. </p>

<pre><code>&lt;table id="employeedept" border="1"&gt;
    &lt;THEAD&gt; &lt;tr&gt; &lt;th&gt; Dept&lt;/th&gt; &lt;th&gt; Name&lt;/th&gt; &lt;/tr&gt; &lt;/THEAD&gt;    
    &lt;tr&gt; &lt;td&gt;&lt;/td&gt;  &lt;td&gt; John &lt;/td&gt; &lt;/tr&gt;
    &lt;tr&gt; &lt;td&gt;&lt;/td&gt;  &lt;td&gt; Tom &lt;/td&gt; &lt;/tr&gt;
    &lt;tr&gt; &lt;td&gt;&lt;/td&gt;  &lt;td&gt; Smith &lt;/td&gt; &lt;/tr&gt;
&lt;/table&gt;

&lt;input style="margin-top:20px;" name="deptname" id="deptname"  /&gt;
&lt;input type="button" id="dtnDept" value="Add New Dept" onclick="createDept()" /&gt;
</code></pre>

<p>Is there any JQuery plugin around that can help me achieve this?</p>
