iPixel Posted July 22, 2008 Share Posted July 22, 2008 I need to somehow create a form with javascript that has 3 drop downs Date: jan, feb, mar etc... Day: 1,2,3,4,5,6,7 etc... Year: 2008,2009,2010 (current year +2) I could do this by hard code but what im looking to do is that when the person views this page.. the current date will automatically be selected so the select options will be pre-chosen to the current date Jul-21-2008. Thanks to all who help. Link to comment https://forums.phpfreaks.com/topic/115927-date-choser-dropdowns/ Share on other sites More sharing options...
xtopolis Posted July 22, 2008 Share Posted July 22, 2008 Javascript has it's own built in date object. http://www.w3schools.com/JS/js_obj_date.asp I don't really know what you're asking otherwise. But that should help you find out the current month, day, year and apply it to your fields. Link to comment https://forums.phpfreaks.com/topic/115927-date-choser-dropdowns/#findComment-596166 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.