I cannot get noUISlider to work. Here is my code snippet:
<script> var handlesSlider = document.getElementById('slidertest'); noUiSlider.create(handlesSlider, { start: [ 4000, 8000 ], range: { 'min': [ 2000 ], 'max': [ 10000 ] } }); </script>
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>TEST</title> <link rel="stylesheet/less" type="text/css" href="css/style.less"/> <link href="css/nouislider.min.css" rel="stylesheet"> <script src="scripts/less.js"> </script> <script src="scripts/jquery-2.1.4.min.js"> </script> <script src="scripts/jquery-ui.min.js"> </script> <script src="scripts/dropzone.js"> </script> <script src="scripts/nouislider.min.js"> </script> </head> ... <div id="slidertest"></div>
And I get this error: Uncaught TypeError: Cannot read the nodeName property from null
try to surround your javascript:
$( document ).ready(function() { var handlesSlider = document.getElementById('slidertest'); noUiSlider.create(handlesSlider, { start: [ 4000, 8000 ], range: { 'min': [ 2000 ], 'max': [ 10000 ] } }); });
Source: https://habr.com/ru/post/1599424/More articles:Gradle error while creating fat jar - jarSpring: Cannot find Spring NamespaceHandler - javaScroll to Select Datagridview Row - searchMulticolor marker for the same LineSeries - OxyPlot - c #Akka.net dynamically adds a child - c #Calling the scope function in a UI element - javascriptGet a series of Spark RDD columns - scalaHow do you implement "show" tail-recursively? - tail-recursionКак искать все соответствующие предыдущие команды с помощью ctrl + R в Linux - linuxCommunication error with cmake - c ++All Articles