Mike Miller wrote:
Here is my snippet:

var myIndex = $j("#show_medication").parents("tr")...

#show_medication is a form element.
parents("tr") is the row containing the element
Now I want to get the rowIndex

Once I have the rowIndex property I would call the moveRow function as
follows:

$j("#show_medication").parents('table:eq(0)').moveRow(myIndex, myIndex-
someNumber, true)

Mike

I see. Try:

var myIndex = $j("#show_medication").parents("tr")[0].rowIndex;
$j("#show_medication").parents('table:eq(0)').moveRow(myIndex, myIndex-someNumber, true);



--Klaus





Reply via email to