How do I check if a preset date (Sept. 13, 2013) is equal to the current date in JQuery - and then run an script if that's true. Here's the code I have right now, but it doesn't work. Thanks!
<script type="text/javascript">
$(document).scroll(function () {
var y = $(this).scrollTop();
var x = $("#third").position();
var date = new Date();
var today = new Date(2013,09,13);
$("#dot").hide();
if (y > (x.top - 50) && date == today) {
$("#dot").show();
$("#dot").addClass(
"animation");
}
else {
$("#dot").removeClass(
"animation");
}
});</script>