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();
});