I am looking for someone who has used jQuery in the capacity of assigning a value to a text area when the user clicks a radio button.
Here is the example code I have worked on so far that does not work.
<div id="donationForm">
<form id="formDonate" method ='request' onsubmit='return isNumeric();' action='content/creditCardAuthorize.php'>
<fieldset id="fieldDonate">
<legend>Donation Form</legend> <br />
<p><input type='radio' id="donation" name='donation' value='10' /> $10</p>
<p><input type='radio' id="donation" name='donation' value='20' /> $20 </p>
<p><input type='radio' id="donation" name='donation' value='30' /> $30 </p>
<p><input type='radio' id="donation" name='donation' value='40' /> $40 </p>
<p><input type='radio' id="donation" name='donation' value='50' /> $50 </p>
<p><input type='radio' id="donation" name='donation' value='75' /> $75 </p>
<p><input type='radio' id="donation" name='donation' value='100' /> $100</p>
<p><input type='radio' id="donation" name='donation' value='' /> Other Amount </p>
<br />
<p><label for='amount'>Amount $</label> <input type='text' name='amount' id='amount' /></p>
<p class='submit'><input type='submit' id="donateButton" value='Continue' /></p>
<br />
</fieldset>
</form>
</div>
<script type="text/javascript">
// fire our code when a radio button has been selected
$("input(@name='donation']").change(function(){
$('#amount').val(value) = $("input[@name='donation']").val()
});
</script>
Thanks!
WBR