JSFiddle - React, Tailwind, and code Playground

by CyrixInstead

HTML

<script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/jquery-ui-git.css">
<p>Just spin one then the other, and check the error log.</p><p>In IE, spin fires in the second spinner before change fires in the first.In other browsers change fires before spin.</p>
<input id="spinner1" class="mySpinner">
<input id="spinner2" class="mySpinner">

JavaScript

var spinner = $( ".mySpinner" ).spinner({
    spin: function( event, ui ) {
        console.log("Spin " + this.id);
    },
    change: function( event, ui ) {
        console.log("Change " + this.id);
    }
});