Tell me how to apply to all the divs that have a background-image set and change src to them. It should be like this
$('селектор div у которых background-image ').each(function () { var scr= получить src div var tarr = src.split('/'); nsrc = tarr[tarr.length - 1]; и установить уже обрезанный url )}; thank you in advance!