I'm data binding by adding a html5 data- custom attribute to an element
<div id="fred">
<input type="text" data-fld="Field1" value="10" />
<input type="text" data-fld="Field2" value="11" />
<input type="text" data-fld="Field3" value="12" />
<input type="text" value="13" />
</div>
I'm trying to search for all elements that have a data-fld specified.
col = div.find("[data-fld!='']");
But no luck with what I've tried this far.
Here's a jsfiddle for it. http://jsfiddle.net/p2KsP/4/