Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Billy Boozer
6,486 PointsI need some Jquery help
I need ot be able to change the default date displayed using advanced custom fields plugin for date picker field using jquery
heres what i have so far:
jQuery('#acf-expire_content input[type=checkbox]').change(function(e){
if ( (jQuery('#acf-expire_content').val()!='') && (jQuery(this).checked) ) {
thirty_days = new Date();
thirty_days_string = // Do the date change here
jQuery('#acf-expire_content').val(thirty_days_string);
}
})
I think I have some syntax issues but I'm not great at jquery
3 Answers
Billy Boozer
6,486 Pointshelp please!
James Barnett
39,199 PointsYou might have more luck for detailed questions like this, if you ask over on the Developer Q&A site Stack Overflow
Billy Boozer
6,486 PointsThanks James