I am working on jquery code for LF Forms where the minimum allowed date is dynamically set to another field's date (which is always in the future). I am triggering these functions from a conditional statement earlier in the code. The copying of the field to the new field at the bottom of the code works. I've used this logic on another function that defaults to today's date and it works but when I am trying to set the min date from another field it does not.
function EffectiveDateMinEligible(){ // alert('Part B Eligible Date Input for Min'); var EligibleDate = $('.EligibleDate input').val(); $('.SelectDate input').val(EligibleDate); $('.SelectDate input').attr('min',EligibleDate); };
Any help in where I've gone wrong is appreciated!
Terri