Jquery Append And Remove Values From Checkbox To Textarea
I am trying to append or remove values of checkbox to textarea, I tried using the following code which is working fine with textbox but not textarea. Also, it just adds information
Solution 1:
You could do something more like this
var checkboxes = $("#alloptions li input[type='checkbox']");
checkboxes.on('change', function() {
$('#fulloptions').val(
checkboxes.filter(':checked').map(function(item) {
returnthis.value;
}).get().join(', ')
);
});
Post a Comment for "Jquery Append And Remove Values From Checkbox To Textarea"