Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Slider initialize does not style the box with number #7545
I talked about it in the irc but didn't get a reply (http://irc.jquery.org/%23jqueryui-dev/default_%23jqueryui-dev_20140703.log.html#t14:37:29)
Anyways if you do .slider() on a number element it doesn't style the box..
checkout this jsbin:
The correct way to dynamically inject a slider is the following:
$( "<input type='number' data-type='range' min='0' max='100' step='1' value='23'>" ) .appendTo( "#myForm" ) .slider() .textinput();
You must use an input of type number and you need to add the attribute
I'll make a demo.