I'm trying to add dark mode function to my website and everything is fine with divs and other objects but I cannot change the only the path of images.

I have 2 folders for dark & regular images and each folder contains same files with same names but only edited for dark and regular mode of website, so I want to change the src to `../assets/imgs/regular/filename.jpg` to `../assets/imgs/dark/samefilename.jpg`.

I'm so much a newbie so please keep your answers simple.