alexa

Passing variables betwen functions in JS [duplicate] ?

Passing variables betwen functions in JS [duplicate] ?

Do you want to load content on every 'change' event ? Move the load inside the change event's function

 function onSelekcijaChange() {
    const selekcija = $('#sezona').val();
    console.log(selekcija);

    $('#epizds').load("/filmovi2/config/load-epizode.php", {
            NewSelekcija: selekcija
    });
}

$(document).ready(function() {

   onSelekcijaChange();
   $('#sezona').change(onSelekcijaChange);

});

296 0
7

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online

Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry