hyperlink - jquery accessibility option -
What do you think of this code, from where it helps with some lazy people :)
Given that most links have a title similar to their text ... then tell me why any of you have such a thing?
Then we can tell w3school to ticked a box.
Prefix your variable with the var
statement to prevent it from being global globally.
Your whole thing can be simplified in:
$ ('a: not ([title])'). Attr 'title', function () {return $ (this) .text ();});
( text ()
over html ()
).
Comments
Post a Comment