[jQuery] radio button value into div
I have a quiz script, it's long so I'm showing and hiding the fieldsets.
I'd like to give the visitor an indication that they have or have not
answered a question. Displaying the value of the radio button for that
question would be good, a small image would work.
The code looks like:
<h3>Longevity</h3>
<fieldset>
radio button 1
radio button 2
radio button 3
</fieldset>
and I'd like to put the indicator next to the closing <h3>
Similar to:
$(document).ready(function() {
$("input:radio").click(function() {
$("#myInput").val($(this).val());
});
});
<input type='text' id='myInput' />
<fieldset>
<input type='radio' name='myRadio' value='first' />First
<input type='radio' name='myRadio' value='second' />Second
</fieldset>
except I'd like to put the radio button value into a div, and I need to
apply it to about 15 questions on the page.
This is the page:
http://www.bmdca.org/pages/profiler/BMD_Compatibility_Profiler.php
I'm very new to this so any help is greatly appreciated.
Hugh