jquery - how to select all input with this attribute?
<p>I've the following html code:</p>

<pre><code>&lt;input data-autocomplete="/items/autocomplete_part_title?locale=en" data-id-element="#autocomplete_38219" id="item_item_parts_attributes_0_autocomplete_part_id" name="item[item_parts_attributes][0][autocomplete_part_id]" size="30" type="text" /&gt;
&lt;input data-autocomplete="/items/autocomplete_part_title?locale=en" data-id-element="#autocomplete_5791" id="item_item_parts_attributes_0_autocomplete_part_id" name="item[item_parts_attributes][0][autocomplete_part_id]" size="30" type="text" /&gt;
</code></pre>

<p>I can have one or more input fields like this.</p>

<p>And I would like to know how could I trigger an event when this field lost focus (blur)</p>

<p>I want to select all the "data-id-element" starting with "#autocomplete_"</p>

<pre><code>$("input#data-id-element^=autocomplete").each().live("blur", function() {
alert('a');
});
</code></pre>

<p>something like this, any way?</p>
