How to display image when click the select option using jquery, css

Posted by bob on Stack Overflow See other posts from Stack Overflow or by bob
Published on 2010-04-18T19:10:09Z Indexed on 2010/04/18 19:13 UTC
Read the original article Hit count: 359

Filed under:
|
|

How to show an image while we select the option below.

Example : -

<select name="payment">
<option value="Paypal">Paypal</option>
<option value="Bank">Bank</option>
</select>

<div id="payment"><img src="paypal.gif' alt="paypal' /></div>

If we select paypal on div id="payment" will show the logo paypal and if bank will show bank logo.

Can be done with jquery? let me know.

© Stack Overflow or respective owner

Related posts about dropdownlist

Related posts about jQuery