I'm getting this error on a form I'm setting up:
Uncaught TypeError: Object [object Object] has no method 'datepicker'
I've been googling for some time now and have checked several posts about this issue. I have jquery and jquery ui in the correct order but continue to get this problem.
my html (footer)
<!-- Included JS Files (Compressed) -->
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="/javascripts/foundation.min.js"></script>
<script src="/javascripts/flexy-menu.js"></script>
<!-- Initialize JS Plugins -->
<script src="/javascripts/app.js"></script>
<script src="/javascripts/lma.js"></script>
Inside lma.js I call the datepicker:
// datepicker
$(document).ready(function() {
$('.checkIn, .checkOut').each(function() {
$(this).datepicker({ dateFormat: 'yy-mm-dd' });
});
});
Am using foundation 3 and for the life of me can't figure out why I'm getting the Uncaught TypeErrro in the console.
UPDATE form code here:
<div class="six columns bookForm">
<form id="reserveNow" action="#">
<label>Check In<br />
<input type="text" value="02/24/2013" class="checkIn round">
</label>
<label>Check Out</br>
<input type="text" value="02/27/2013" class="round checkOut">
</label>
</form>
</div><!--twelve columns-->