A
A
Alexey Chertok2015-09-22 23:46:01
JavaScript
Alexey Chertok, 2015-09-22 23:46:01

How to remove a word from src using jQuery?

Good afternoon. Faced with bad luck.
How can you calculate the src of the picture and remove one word from the scr itself?

For example:

/uploads/posts/2015-09/thumbs/1442954368_1442943412_elegant-vintage-mockups-56393.jpg

but you need:
/uploads/posts/2015-09/1442954368_1442943412_elegant-vintage-mockups-56393.jpg


Those. on the way to remove the word thumbs/
Help please.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question