Hi,
I have a field in table which being filled by lookup. However, when i tried to call that field as a variable from Javascript I get "undefined" even though there is value in that field. I suspect that it was because of the timing issue so i added a timeout function but it's still return undefined.
This is my code
$('table.Table1').on('change','.Field1 input',function() {
$('.fundtable tbody tr').each(function(){
$(this).find('.autofill').trigger('click'); -- Autofill to trigger look up to field 2
setTimeout(function (){
var field2value = $(this).('.field2 input').val();
alert(field2value);
},500);
});
});
Any helps are appreciated.
Thank you