Find an element by partial ID and then find which id got selected in jQuery
<p>So i have these items whose ids are like <code>#date_0</code>, <code>#date_1</code>, etc.</p>

<p>Here is my script :</p>

<pre><code>$('[id*="date_"]').bind('change', function(event) {
    var hour_id = $('[id*="date_"]').val();
    console.log(hour_id);
});
</code></pre>

<p>what I want is that if I change <code>#date_5</code>, I get its value. But I am getting only <code>#date_0</code>'s value.<br>
What am I missing here?</p>