title: How to loop element in jQuery mobile?
body: <p>I have 3 fields:</p>
  
  <pre><code>&lt;input type="datetime" name="input-data" id="datetime-start"&gt;
  &lt;input type="datetime" name="input-data" id="datetime-end"&gt;
  &lt;input type="text" name="input-data" id="text-basic"&gt;
  </code></pre>
  
  <p>And i need to check if there is something entered, so i firsly did it like <code>jQuery.each('[name="input-data"]', function()</code> and used <code>this</code> in loop, but get some errors. After small debug i found a way like <code>jQuery.each(jQuery('[name="input-data"]'), function(key, value)</code>, but when i trying to do <code>console.log(value.val());</code> i get en error. So i decided to look what is in <code>value</code> and was surprised - there was just a string <code>&lt;input type="datetime" name="input-data" id="datetime-start"&gt;</code>. So how can i loop trough all input values?</p>