Using jQuery to automatically add class only to gif images in WordPress database [closed]

Found it:

$('img[src*=".gif"]').addClass('gif-class');

Thanks to @BrianFegter

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)