$('li.table').on('change', '.dept select', SetDepartTime); function SetDepartTime() { var d = new Date(); $('li.table tbody tr').each(function () { var current = $(this).find('.time input').val(); alert(current); }); }
Thought I had this solved, but javascript is still finding rows that don't exist on the form. For example, the form only has 1 table with 1 row, and this .each function runs 3 times. I am looking for a function that only runs once per row.