Always Uncaught ReferenceError: function is not defined when adding function in select onchange

Nelvin Corbita

Greenhorn

Posts: 9

posted 1 year ago

I have a view:

in my js script:

and in my controller:

I am laready using the codes above in my other projects and I have no problem at all but when I use it in my current project I always get Uncaught ReferenceError: function is not defined every time I add a function in select onchange but my other scripts is working fine.....