let hasAttr = $(‘jQuerySelector – #id ..’).is(“[attributeName]”); // returns boolean true | false
Source: https://stackoverflow.com/questions/391483/what-is-the-difference-between-an-abstract-function-and-a-virtual-function An abstract function cannot have functionality. You’re basically saying, any child class MUST give their own version of this method, however it’s too general to even try to implement in the parent class. A virtual function, is basically saying look, here’s the functionality that may or may not be good enough for the child class. … Read moreWhat is the difference between an abstract function and a virtual function?