numberFormat: null,
page: 10,
step: 1,
- value: null,
+ value: 0,
change: null,
spin: null,
},
_create: function() {
- this.value( this.options.value !== null ? this.options.value : this.element.val() || 0 );
+ this.value( this.options.value );
this._draw();
this._mousewheel();
this._aria();
var options = {},
element = this.element;
- $.each( [ "min", "max", "step" ], function( i, option ) {
+ $.each( [ "min", "max", "step", "value" ], function( i, option ) {
var value = element.attr( option );
- if ( value !== undefined ) {
+ if ( value !== undefined && value.length ) {
options[ option ] = value;
}
});