I'm trying to get this basic Bootstrap slider working, but this just eludes me.
http://getbootstrap.com/ bootstrap
http://www.eyecon.ro/bootstrap-slider/ bootstrap slider
I'm trying to implement this, but can't figure out why it isn't working. I've confirmed jQuery 1.8.3 running on the server. I have included the CSS/JS of Bootstrap 3.0.3. And I have included the CSS/JS of the Bootstrap Slider.
Here is the code I'm using to try to get this to run:
<div class="row">
<div class="col-md-6">
<input type="text" id="foo" class="span2" value="" data-slider-min="-20" data-slider-max="20" data-slider-step="1" data-slider-value="-14" data-slider-orientation="horizontal" data-slider-selection="after"data-slider-tooltip="hide">
<input type="text" id="bar">
<script type="text/javascript">
$('#foo').slider().on('slide', function(ev) { $('#bar').val(ev.value); });
</script>
</div>
</div>
All I'm getting is two text input boxes, but not slider. Any ideas?