Hi,
I have a form with 2 date fields.
I have date picker with icon set and I want the option to only be able to select dates anytime in the future except current date.
I've checked the other posts.. I think I finally figured out where I'm supposed to paste the code (please confirm) through wordpress, by going to "appearance"- "editor" and then choosing either "header" or my theme has a "customjs.php".
I've tried pasting both in header and customjs.php the code I thought was relevant... but its not working. Given I have 2 fields am I supposed to run 2 scripts each one with its own name?
What exactly is the script I'm supposed to paste?
jquery datepicker I copied this into the header but it didn't work... (I changed -20 to +1 etc.)
<script>
$(function() {
$( "#datepicker" ).datepicker({ minDate: -20, maxDate: "+1M +10D" });
});
</script>
At jquery datepicker I also tried copying all the code they show in "source" and pasting into "customjs.php" but again no effect.
Please advise,
Thanks,
Badi