showing results for - "url 28image loacation 29 give a class"
Emiliano
06 Jan 2019
1var basePath = 'mysite/images/';
2$('a').each(function() {
3    var className = $(this).attr('class');
4    className = className.replace(/[^f][^0-9]*/, '').replace(' ', '');
5    $(this).css('background-image', basePath + className + '.png');
6});
7
similar questions
queries leading to this page
url 28image loacation 29 give a class