title: How to get all the element from the current template in View object in Backbone.js
body: <p>How to get all the input element from the current template in View object in backbone.js, so that I can check the value in input element.</p>
  
  <pre><code>/*template*/
  
  &lt;script id="emptemplate" type="text/template"&gt;
  &lt;input id="name" value="{name}"/&gt;
  &lt;input id="address" value="{address}"/&gt;
  &lt;input id="sex" value="{sed}"/&gt;
  &lt;footer&gt;
     &lt;button id="save"&gt;save&lt;/button&gt;
  &lt;/footer&gt;
  &lt;/script&gt;
  
  /*javascript*/
  
  var EmployeeView = Backbone.View.extend({
    ...
    render:function(){
    ....
    },
    events:{
      "click #save": "saveData"
    },
    saveData: function (e) {
          var Data = [];
          $('input').each(function (value, key) {
              /*my problem here:
               cannot able to get the value of input element!
               */
              var v = value;
              var k = key;
          });
      }
    });
  </code></pre>