Problem updating a textarea (Firefox only)
I'm very new to using Jquery, so please bear with me if this is a dumb question...
I'm using the following code to change the text inside of a textarea based on the text inside another div, which is chosen by a set of radio buttons:
- $('#letter-container').html(letterHTML);
$("input[name='letters']").change(
function() {
var letterValue = $('input[name=letters]:checked').val();
var letterDivName = '#letter-' + letterValue;
$('#edit-body').html($(letterDivName).html());
}
);
This works perfectly in Chrome. However, in Firefox, it only works up to the point where I type changes into the textarea. After that, it stops working until I refresh the page.
Can anyone tell me what I'm doing wrong?
Thanks!