Chain and get input value

This code gets the text that is in a specific column of the 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 in a table cell?

var keyA = $(a).children('td').eq(column).('input').val().toUpperCase();
+3
source share
2 answers

Try the following:

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

ABOUT! It:

children('input')
-1
source

Source: https://habr.com/ru/post/1742355/


All Articles