The path to an image looks like this:
<img src="uploads/image1.jpg">
The image is visible when on index.php
in the same directory as uploads
is.
But for my admin, i use a subdirectory admin
. So to view the image, the path now should be
<img src="../uploads/image1.jpg">
Is it possible to add the ../
before the uploads with jquery? and how can i do that?
I want to make this work for all images in the uploads
folder!