I\'m looping through cells in a table row. each cell has a text box in it, and I want to take the value of the text box and push it onto an array.
function dothi
.val() is a jQuery function, not a javascript function. Therefore, change:
.val()
var val = $(this).children('input')[0].val()
To:
var val = $(this).children('input:eq(0)').val()