The textareas update but I'm not getting the values of the radio-buttons correctly.
HTML
<div class="row text-center" id="like">
<p>I like</p>
</div>
<div class="btn-group" data-toggle="buttons" id="fruit">
<label class="btn btn-default"><input type="radio" name="fruitName" id="option1" value="knowledge">apples</label>
<label class="btn btn-default"><input type="radio" name="fruitName" id="option2" value="comprehension">oranges</label>
<label class="btn btn-default"><input type="radio" name="fruitName" id="option3" value="application">banannas</label>
</div>
<div class="row text-center" id="because">
<p>because</p>
</div>
<div class="row text-center">
<textarea class="form-control" id="reason" rows="1" placeholder="why do you like them?"> </textarea>
</div>
<div><p id="output"></p></div>
JS
$('#fruit, #reason').bind('keypress blur', function() {
var str = 'I like ' + fruit.value + ' because ' + reason.value + '.'
output.innerHTML = str;
});
Fiddle: http://jsfiddle.net/AL22k/
I think it would be better to use the map() function, but I'm not sure how to set up the change handler.