I have a function:
$('.fakelink').on('change', function () {
//date = $(this).val();
date = '2010-01-24';
});
console.log(date); // Not in console
If console.log (date) is moved outside the function, then the console is empty, it turns out that the date is not passed down the code outside the function.
How to send the date value further down the code from the function?
I just can't beat this script, I didn't work with js at all. I read the recommendations, used the advice, but I could not do anything worthwhile.
Help me, please.
Thank you!