Hi I'm trying to access a global variable that I set inside an event handler. On my form I just click
inside a input box the problem code is basically like this

var dateSource;
jQuery("body").click(function (event) {
  dateSource = event.target.id;

The thing is if I run this, dateSource always comes out empty/blank; It never picks up the id of the inputbox

Thank you