0

Hi Good Morning every one..
This is my Html Code.

 <div>
        <img src="http://imgs.zinio.com/magimages/500299032/2012/416238969_170.jpg" alt="Nov-12" title="Food Network Magazine"         class="cover">  
     </div>
    <select  id="myselect">
        <option value="B">Business Card</option>
        <option value="C">Corporate Card</option>
        <option value="D">Type #</option>
        </select>

consoder i have three different images ,if i choose Business Card option it will show default image,if i choose Corporate option it will show second image(i.e, first image is automatically replaced by 2nd image),if i choose Type # option,the previous imge is automatically replaced by 3rd imge.
please i need very urgent help..thanks in advance.

2
Contributors
2
Replies
26
Views
1 Year
Discussion Span
Last Post by shashigowda
1

Look into the jQuery .change() method. You can attach it to a select element with something like this:

$( "#myselect" ).change(function() {
  // your code to run on a change event
  // in your case, getting the 'cover' element and changing its src
});
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.