title: Getting All Data-Bind Values Using JQuery
body: <pre><code>    function getDbValue()
  {
      alert($('[data-bind]').length);
      alert($('[data-bind][0].data-bind'));
      alert($('[data-bind][0].value'));
      jQuery.each($('[data-bind]'), function(databind,key)
      {
          alert(key);
          alert(databind);
          alert(databind[key].data-bind);
      })
  
  }
  </code></pre>
  
  <p>The above is my function and i want to read all inputs that have the properties data-bind within them for example </p>
  
  <pre><code>&lt;input type="text" id="frmIn1-Officer" data-bind="value: AOfficer" class="InputText"/&gt;
  </code></pre>
  
  <p>^ When running my function i would want it to return 'AOfficer' as that is the data-bind value.</p>
  
  <p>So an example is</p>
  
  <pre><code>&lt;input type="text" id="frmIn1-Officer" data-bind="value: AOfficer1" class="InputText"/&gt;
  &lt;input type="text" id="frmIn1-Officer" data-bind="value: AOfficer2" class="InputText"/&gt;
  &lt;input type="text" id="frmIn1-Officer" data-bind="value: AOfficer3" class="InputText"/&gt;
  &lt;input type="text" id="frmIn1-Officer" data-bind="value: AOfficer4" class="InputText"/&gt;
  &lt;input type="text" id="frmIn1-Officer" data-bind="value: AOfficer5" class="InputText"/&gt;
  &lt;input type="text" id="frmIn1-Officer" data-bind="value: AOfficer6" class="InputText"/&gt;
  </code></pre>
  
  <p>And in the for each loop i would like to be able to use the value of data bind..
  e.g values[0] = 'AOfficer1'</p>
  
  <p>Sorry if my explanation is slightly confusing, i have the idea in my head perfect but trying to put it in writing is alot harder. </p>