-2
Function to replace src if it contains a word. Ex:
<li class"none">
<img src="/img/aqui-pode-mudar-exemplo.png?v=123456" alt="Imagem">
</li>
Another possibility that can help me is a way to ignore the "? v=#####" after the extension:
$("img[src='/img/exemplo.png?v=#####']").attr('src', "/novapasta/img/novaimagem.png");
Example above does not work due to "?=#####".
your question is a little confusing, put data that explains better, and tbm include javascript code than you have tried
– Ricardo Pontual
NOTE: I cannot edit the HTML directly, only insert via <script>, and the cited classes ("None") whose image contains the cited src can be in random positions.
– Lucas Vilas Boas
I couldn’t understand... what must be in the source to be found?
– Leandro Angelo
If a "src" of the <img> within <li> of certain classes has a certain word, then replace src with another. In the example above, the Given Class is "None" and the word that needs to be found in "src" is "example".
– Lucas Vilas Boas