I am using jQuery spinner control in my web form. But this initial value is not set. I am using IE9 + VS2010
Here is the code I wrote in my generic function. I call this function at runtime and send the parameters accordingly.
function(spinnerid, minval, maxval, initvalue, step) { $("#" + spinnerid).spinner({ min: minval, max: maxval, increment: step, value: initvalue }); }
These are the libraries that I use:
<script type="text/javascript" src="http://code.jquery.com/ui/1.9.0/jquery-ui.js"></script> <link type="text/css" rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" />
And this is the HTML:
<input type="text" id="income" class="income" />
source share