Changing an Image

I have an image in a div.  I would like to change that image on an event.

<div class="notice" id="notice"><!--notice Start-->
    <p align="center"><img src="Images/Buttons/BigSearch.png" alt="Ballon" name="ballon" width="318" height="166"
    id="ballon" class="ballon" style="visibility: visible;"  /></p>
	</div><!--notice End-->

Open in new window

I was previously just hidding it or showing it, but now I want to chamge it.
How can I do this?

else {

Open in new window

This doesn't work.
$("ballon").("img src="Images/Buttons/BigSearch.png");

Open in new window

Who is Participating?
Jagadishwor DulalConnect With a Mentor Braces MediaCommented:
OK One of your solution will be changing src:

Open in new window

Jagadishwor DulalBraces MediaCommented:
Where is your if condition I thinks it's not so good to write only else and what is the event mousehover or click post the complete code.
DS928Author Commented:
Works perfectly!  Thank you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.