Answer the question
In order to leave comments, you need to log in
How are events handled in backbone.js?
Hello. Help me to understand. Have a backbone.js project. A form with html elements, input, label is built on it. One of the inputs is of type checkbox.
So, when passing the form using the tab key, the value of this ckeckbox is set to NULL and the form returns a response of 500. Which way to dig, any ideas?
Answer the question
In order to leave comments, you need to log in
somewhere it says something like:
var formView = Backbone.View.extend({
events:{
'focus input[type=checkbox]':'makeNull'
},
makeNull:function(e){
e.target.value = null;
}
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question