jquery accessibility option

Posted by Val on Stack Overflow See other posts from Stack Overflow or by Val
Published on 2010-06-15T16:28:38Z Indexed on 2010/06/15 16:32 UTC
Read the original article Hit count: 197

Filed under:
|
|
|

what do you guys think of this code to help with some lazy people out there :)

$('a').each(function (i,n){
    $title = $(n).attr('title');
    if(!$title){
        $(n).attr('title',$(n).html());
    }
});

Considering that most links have the same title as their text so... let me knwo if any of you out there like this?

So we can tell w3school one box ticked :)

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about link