/ Published in: JavaScript
Expand |
Embed | Plain Text
$('a[href]').each(function() { if((C = $(this).attr('href').match(/[.](doc|xls|pdf)$/))) { $(this).addClass(C[1]); } });
You need to login to post a comment.
