Backbone.js Change Text Based On Selected Dropdown
I am trying to get some text to change when the user selects a different option in a dropdown box. I am using Backbone.js and am trying to figure out how to get the text belonging
Solution 1:
[EDITED] that should work for you:
changeText: function(e) {
alert(e.target.value);
}
e.target
refers to DOM element that triggers change event here. e.target.value
returns value of currently selected item in select box
Post a Comment for "Backbone.js Change Text Based On Selected Dropdown"