your text
Need that when a customer selects a product from dropdown selector of the my WS Form, he can see an image of the product in the same form using a window with LayerSlider.
your text
My data:
your text
Dropdown selector ID = 5277
your text
Product1 = DAA1186
your text
Product2 = DAA1187
your text
Product3 = DAA1189
your text
Product4 = DAA1244
your text
Layerslider ID = 10
your text
Lauer = 1
your text
Layer = 2
your text
Layer = 3
your text
Layer = 4
jQuery(document).ready(function($) {
$('#5277').change(function() {
var selectedValue = $(this).val();
if (selectedValue === 'DAA1186') {
layersliderInstance.showSlide(1);
else if (selectedValue === 'DAA1187') {
layersliderInstance.showSlide(2);
else if (selectedValue === 'DAA1189') {
layersliderInstance.showSlide(3);
else if (selectedValue === 'DAA1244') {
layersliderInstance.showSlide(4); }
var layersliderInstance = $('#10').layerSlider({
});
});
});
your text
It’s don’t work and I don’t see the error, but the console says something else. The specified value “0)” cannot be parsed, or is out of range. jquery.min js?ver=3.7.1:2.