this issue is when i set variable to field there are no changes in field render and also the javacript get error variable undefiend .
then when alert the value using alert( NWF$("#" + varStartDate)).
If you want to show the value, you should use >>> alert( NWF$("#" + varStartDate).val())
Just tested this out, and Fernando Hunth is correct. I used console.log, but it should not be any different using alert();
Retrieving data ...