jimleeder123 Posted June 24, 2016 Share Posted June 24, 2016 I've got an HTML 5 date input box working on my site. Anyone know how to make the whole thing selectable like a drop down (select) box? Currently you can only select it by clicking on the arrow at the far right of it. I don't mind about losing the cross or up and down arrows. I just want the field to be fully selectable like a drop down box. Any ideas please? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/301392-html5-date-input-type/ Share on other sites More sharing options...
kicken Posted June 24, 2016 Share Posted June 24, 2016 If you're using the browsers native picker with a type="date" field then you pretty much just have to accept how that UI looks and works, there's not much you can do to change it. If you really need to be able to select the entire field, then use a type="text" field with your own picker implementation (such jQuery UI's datepicker). Or just use a select box with a list of dates if that is the look you're going for. Quote Link to comment https://forums.phpfreaks.com/topic/301392-html5-date-input-type/#findComment-1534008 Share on other sites More sharing options...
jimleeder123 Posted June 27, 2016 Author Share Posted June 27, 2016 Ok, was wondering if there is a CSS hack for it or anything? Quote Link to comment https://forums.phpfreaks.com/topic/301392-html5-date-input-type/#findComment-1534034 Share on other sites More sharing options...
Muddy_Funster Posted June 27, 2016 Share Posted June 27, 2016 t'internet is an amazing thing if one is prepared to use it : Here and Here - both on page one of a well known search engine - may not be exactly what you are after, but there should be enough code between the two of them for you to hammer out what you need. Quote Link to comment https://forums.phpfreaks.com/topic/301392-html5-date-input-type/#findComment-1534035 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.