I'm new to Node and working on my first socketstream app. Progress is pretty good, but I'm stuck on what I'm sure is a simple problem.
I would like to handle a simple onchange event from a HTML 'select' that's defined in a views/app.html. I defined a handler in client/code/app/app.js, however apparently not visible to app.html.
Here's what I have in client/code/app/app.js
var changeView = function(select) {
console.log('fired');
var selectedOption = select.options[select.selectedIndex];
alert("The selected option is " + selectedOption.value);
}
module.exports = changeView;
How can I have changeView handle the onchange event?
---