I was wondering if it is possible with jQuery to change text on a page based on what radio button is clicked.
I have the following code, and i want to change the label text to “first radio was clicked” or “second radio was clicked” based on which of the radio buttons were clicked.
<input type="radio" name="first" value="yes" id="firstradio">
<input type="radio" name="first" value="no" id="secondradio">
<label class="changeme">Initial text goes here and is happy</label>
It will be something like below :