Dropdown on Change event
Posted: 2015-08-13 00:26
I'm trying to modify the behavior of a form when someone changes a dropdown value in my generated application so I used the code provided by appgini in the Help/Advanced Topics/Magic Files section (http://bigprof.com/appgini/help/advance ... agic-files) :
But it's not working on a dropdown, I checked de generated HTML but there's no select element, it's just a div and the HTML input "grupo_id" generated by appgini it's an input hidden element so by javascript rules it will not trigger a change event, someone else is having the same problem?
Code: Select all
document.observe('dom:loaded', function() {
$('grupo_id').observe('change', function() {
console.log("change", $F('grupo_id'));
});
});