Reputation: 1815
I am hoping someone can help me as all of the posts I have read seem to indicate that the spinner was not released until 1.9, which I am using. I am getting an error that the .spinner is not a function. Here is my code:
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />
<script>
$(document).ready(function () {
$( "#ingAmount" ).spinner();
});
</script>
and this is my input:
<input id="ingAmount" />
I have used the jquery UI library for the slider which works perfectly, so I am not sure why it can't access the spinner.
Thanks!
Upvotes: 0
Views: 5301
Reputation: 1815
I figured this out. I had used NuGet in visual studio to install the AJAX Toolkit... when I did this it installed an old version of Jquery UI which did not have the spinner. Even though I was using the correct scripts on my page it was still accessing the older one. I used NuGet to update the jquery and jquery libraries which in turn updated the one that AJAX was associated with.
(I feel so silly...)
Upvotes: 2