I am trying to create a custom jquery selector to return the bool of css("visibility") == "inherit"
but it doesn't seem to be working. Below is the code...
$.expr[":"].crazyvisible = function(a) {
var elem = $(a);
return (elem.css("visibility") == "inherit");
};
This is the code I'm using the selector in (i've also tried live)...
$(document).ready(function() {
$("span#Request1_multiconditionvalidator2").delegate(":crazyvisible","attachErrorMessage", function() {
...
}
}