Is there a more preferred way of doing this in terms of performance?
Example HTML:
<input type="text" data-attr="ABC XYZ" />
<div data-attr="XYZ"></div>
Example jQuery:
var myValue = 'XYZ';
$('[data-attr*="' + myValue + '"]').hide();
Is using classes better for this?