Creating new selectors is fun, so I did this:
Application:
: hasCssAttr (property, value ...)
Property - css,
value - (), ( )
$(':hasCssAttr(float, left)').css('float', 'right');
Luke:
$.expr[':'].hasCssAttr = function(objNode, intStackIndex, arrProperties, arrNodeStack) {
var arrArguments = arrProperties[3].split(',');
var cssPropVal = $(objNode).css(arrArguments[0]);
for (var i = 1 ; i < arrArguments.length ; i++)
if (cssPropVal == arrArguments[ i ].replace(/^\s+|\s+$/g,""))
return true;
return false;
}
, ol 'css. , , , . , , eval, . . .
.