Quantcast
Channel: Moodle for mobile
Viewing all articles
Browse latest Browse all 8379

Re: How underscore works for dropdown?

$
0
0
by Juan Leyva.  

Hi,

you don't need to call a Route to directly call a function related to that route, what I mean is that you can call directly your function in the onchange event

Instead using plain javascript, you should use jquery and event listener for the elements ids, something like:

In the main.js, afer the template has been printed

$("#rate").on('change', function() {

var value = $(this).val();

});


Viewing all articles
Browse latest Browse all 8379


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>