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

JavaScript

Zurb Foundation Abide JS validation for input field type time

Hello,

I'm experiencing wit simple issue with foundation.abide.js validation for foundation 6 when I have text input for time. When I write something into it, my validation says it's required and I don't know why. Any ideas?

Thank you very much.

http://www.cvakator.savana-hosting.cz/projects/bdd2016/

1 Answer

I know at one point there was an issue with abide because of different time locality formats and preferences. If I remember, you have to use HH:MM:SS for the time format. Try switching it to that format and see if it works.

Thanks for reply, where I can switch it? I'm quiet confused because this page http://foundation.zurb.com/sites/docs/forms.html says you can have time for input, which is what I need but the input time is only for HH:MM I guess and this page says the validation pattern http://foundation.zurb.com/sites/docs/v/5.5.3/components/abide.html.

The main issue us when I have just required in it and it won't go when I write some hours and minutes.

<input type="time" class="input-group-field" >