How to use jQuery to get the checked checkboxes values, and put it into a textarea immediately?
Just like this code:
&l
function updateTextArea() { var allVals = $('#c_b :checked').map(function() { return $(this).val(); }).get(); $('#t').val(allVals) } $(function() { $('#c_b input').click(updateTextArea); updateTextArea(); });