title: BackboneJS+UnderscoreJS how to bind el back to model
body: <p>I'm am the beginner in the backbone.js + underscore.js. Sorry if here is already an answer. Maybe I just dont have the right question.</p>
  
  <p>I have the simple template:</p>
  
  <pre><code>&lt;script type="text/template" id="item-template"&gt;
   &lt;div&gt;
     &lt;input id="todo_complete" type="checkbox" &lt;%= Completed ? 'checked="checked"' : '' %&gt;            /&gt;
      &lt;%= Title %&gt;
    &lt;/div&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>And the next view:</p>
  
  <pre><code>define(["backbone", "underscore", "jquery"],function (Backbone, _, $) {
  var todoView = Backbone.View.extend({
      tagName: 'li',
      todoTpl: _.template($('#item-template').html()),
  
      events: {
          'change input': 'edit',
      },
  
      initialize: function() {
          this.$el = $('#todo');
      },
  
      render: function() {
          this.$el.append(this.todoTpl(this.model.toJSON()));
          this.input = this.$('.edit');
          return this;
      },
  
      edit: function(val) {
          //console.log(this);
          //console.log(_(this.el));
      },
  });
  return todoView;
  });
  </code></pre>
  
  <p>and the model:</p>
  
  <pre><code>define(["backbone", "underscore", "jquery"], function (Backbone, _, $) {
  var Todo = Backbone.Model.extend({
      defaults: {
          Title: '',
          Completed: false
      }
  });
  return Todo;
  });
  </code></pre>
  
  <p>After I run render all works just fine, but after I start to edit the data in form(for example change the state of checkbox) the model in View is not getting changed. How to change it in the right way. </p>
  
  <p>I know that I can add events on every input changes in the view and change the value of every attribute of the entire model by the hands. What is the best practice in this case? </p>
  
  <p>Thanks a lot for any advance!</p>