I'm in confusion to how to initialize some basic js components, like the "grid slider":
that is included in the package for laravel: https://colorlib.com/polygon/gentelella/form_advanced.html
and it comes from this plugin: http://ionden.com/a/plugins/ion.rangeSlider/en.html
that's my code:
<input type="text" id="test_range" name="example_name" value="" />
$(document).ready(function(e) {
$('#tabS').DataTable();
$("#test_range").ionRangeSlider({
min: 100,
max: 1000,
from: 550});});
I've tried 2 way:
- with no explict import the error is:
- importing the cdn in the child view in the "
@stack('script')
" part like:
src="https://cdnjs.cloudflare.com/ajax/libs/ion-angeslider/2.2.0/js/ion.rangeSlider.min.js">
the erros is something like:
how can i correctly initialize this component?