How to know input 's attribute when document loaded with javascript
<p>I really need to know the input's attribute when document had finished loading. For example:</p>

<pre><code>&lt;input type="text" data-type="string" /&gt;
&lt;input type="text" data-type="string" /&gt;
&lt;input type="text" data-type="date" /&gt;
</code></pre>

<p>And with javascript with an alert should display</p>

<pre><code>you have 2 string data-type and 1 date data-type
</code></pre>
