Link to home
Start Free TrialLog in
Avatar of SevenAteAnthony
SevenAteAnthonyFlag for United States of America

asked on

Div onClick Change Two Other Div Image Paths

Hi Experts,

Thanks for reading. I'm looking for a quick script that, onClick of a <div>, it changes the image path in another div and the other image path in another div. As a sample:

<div id="switchImagePaths"></div>

<div id="image1"><img src="pathChangesOnClickOnswitchImagePathsDiv.png" /></div>
<div id="image2"><img src="pathChangesOnClickOnswitchImagePathsDiv.png" /></div>

Open in new window


Thank you!
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SevenAteAnthony

ASKER

Thanks so much!