Ealuate jQuery code nested in the object when object is used : I have a JS object like:

    {
    'element1':{'redirectURI' : 'abc.php?toDate='+encodeURIComponent(jQuery('.dateField1').val())},
    'element2':{'redirectURI' : 'pqr.php?&toDate='+encodeURIComponent(jQuery('.dateField2').val())} 
    };

I need the **redirectURI** index to be evaluated when the object is used i.e. when `obj['element1']['redirectURI']` or `obj['element2']['redirectURI']`.

How to achieve this?
Right now `jQuery('.dateField2').val()` takes the value available when this object is parsed,the date field is a datepicker whose value can vary.

Thanks.    

  

   