tags:

views:

25

answers:

2

This code gets the text that's in a certain column of a table row:

var keyA = $(a).children('td').eq(column).text().toUpperCase();

Q: How do I rewrite this to get the value of an input tag that's in the table cell?

var keyA = $(a).children('td').eq(column).('input').val().toUpperCase();
+4  A: 

Try this:

var keyA = $(a).children('td').eq(column).find('input').val().toUpperCase();
Sarfraz
A: 

Oh! It's:

children('input')
cf_PhillipSenn
`children` looks for direct children in the element, `find` will look in all descendants.
bobince