I have some HTML that I would like to change based on which of the 3 radio buttons the user clicks.
Here are the radio buttons:
<input type="radio" name="awardSwitch" value="silver" /> <input type="radio" name="awardSwitch" value="gold" /> <input type="radio" name="awardSwitch" value="platinum" />
The HTML I want to update is below:
<div id="BestCourseforyourGolfGame"> <div class="floatleft"> <textarea name="code" cols="50" rows="6"> <a href="http://foo.com/best/best-of/#BestCourseforyourGolfGame" target="_blank"> <img src="http://foo.com/assets/awards/2010/best-of-2010-silver.jpg" alt="Best Course for your Golf Game" border="0" width="151" height="200" /></a> </textarea> </div> <div class="floatright"> <img src="http://foo.com/assets/awards/2010/best-of-2010-silver.jpg" alt="Best Course for your Golf Game" border="0" width="151" height="200" /> </div> </div>
Basically what I want to change, text wise in HTML, is the last bit of the image name. In this case, it is "-silver", but I would like it to be updated to "-gold" or "-platinum" depending on the button selected.
Thanks in advance!
Marty source share