This code gets the text that's in a cert开发者_运维知识库ain 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();
Try this:
var keyA = $(a).children('td').eq(column).find('input').val().toUpperCase();
Oh! It's:
children('input')
精彩评论