getAttribute vs attr()
getAttribute vs attr()
Just a quick technical question about why I couldn't use getAttribute() inside a jQuery function? I would get an error message, getAttribute is not a function. So I went and used attr() instead but what gives?