mardi 1 novembre 2016

Focus the first element on a new row

When i add a new row to a Html table, i want to focus the first Cell of this row.

My current code is

$('table td').first().focus();         // focus on the first cell of the row

but this selects the first cell of the entire table. What is needed to get the first cell of the added row?




Aucun commentaire:

Enregistrer un commentaire