Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery UI Slider Not Appearing

I thought the basic syntax for a slider was:

<div id="slider"></div>

$("#slider").slider()

But that doesn't make a visible slider. Inspecting the div element, I see that some stylings were applied, but the slider isn't visible.

Here's a fiddle: http://jsfiddle.net/yqNcn/

like image 634
Tyler DeWitt Avatar asked Apr 10 '12 22:04

Tyler DeWitt


1 Answers

You have not included the CSS for jQuery UI so classes are applied but styles are not (there are actually none to apply). Here's an edited fiddle that includes the styles (look at the Resources panel); the slider is visible as it should be.

like image 177
Jon Avatar answered Sep 24 '22 10:09

Jon