how do I find elements that contain a data-* attribute matching a prefix using jquery
<p>I'm want to create a selector to find elements which have attributes starting with a string. At this point, I'm assuming this selector does not exist.
Do I need to extend the selector capabilities? <a href="http://james.padolsey.com/javascript/extending-jquerys-selector-capabilities/">Extending jQuery’s selector capabilities</a> by James Padolsey</p>

<p>I need to express something like the Attribute Contains Prefix Selector [name|="value"], but instead of matching "value", I need to match against the name of the attribute, and not the value of the attribute.</p>

<p><code>&lt;tag data-plugin-option1="val1" data-plugin-option2="val2" /&gt;</code></p>

<p>I'd like to end up with a syntax like this:
<code>$('tag(:attr|="data-plugin")')</code> which should find the element <code>tag</code> because it has at least one element that starts with <code>data-plugin</code></p>
