UID UID - 1 year ago 127
HTML Question

jQuery Spinner not working, shows a normal textbox instead

I am using jQuery Spinner to show a textbox with increment/decrement options.

For now, I have written very basic code to create the spinner.


<input id="spinner" name="value">


<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>

$(function() {

Here’s a jsFiddle.

After rendering on the page, it shows a plain textbox, and in the console, I get these errors:

  • ReferenceError:
    is not defined

    })( jQuery );

  • TypeError:
    is not a function


Have I forgotten to call some extra jQuery, or something else?

Answer Source

You haven't selected a jquery library.You need to select appropriate Jquery framework for you .

If your other frameworks are using jquery you must include the jquery library befoore including other libraries

enter image description here

$(document).ready(function() {


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download