I had the same problem as @naser, and here is how I fixed my problem:
My first problem was that I did not have a modernizer working on my site. In the <head> section of your page, add Modernizr:
<script src="/js/vendor/modernizr.js"></script>
This should work if your Foundation files are installed correctly, but for some reason mine were not. Therefore, I used CDNJS files to install modernizr:
<script src="//cdnjs.cloudflare.com/ajax/libs/foundation/5.0.2/js/modernizr.js"></script>
If you do not want to use files with CDNJS, you should go to the Foundation / js folder and see if there are any files there (modernizr.js, foundation.js, etc.). If they do not check the bower_components folder and then copy them to the Foundation / js folder. If you cannot find them anywhere, try reinstalling Foundation.
And it worked fine for me. Hope this helps.
source share