I'm developing a web app in grails and I have my gsp, and my .js file, I want to check if when I change a value of my combobox I can access to the function, but nothing happens... these are my codes:
javascript [dynamic.js]:
function cmbFilters(){
alert("Hello");
}
GSP [numberJobs.gsp]:
<a>Filter by :</a> <g:select id="cmbFilterBy" name="cmbFilterBy"
onchange="cmbFilters()" from="${['None','Name', 'Owner', 'Description', 'Status',
'Cron Expression']}"></g:select>
and in my Application Resources.groovy i have this:
numberJobs{
resource url:'css/custom.css'
resource url:'js/dynamic.js'
}