Can I use jQuery find() for more than one element type at the same time?
Use a comma to union multiple queries:
var tds = $(this).find('input, textarea');
You can also use :input
as a selector, but it's not as efficient and may also include some things you'd rather not include.
You can use .children()
to select the td
s child whatever it is
var tds = $(this).children();