2017  Kodetalk | Feedback | Privacy Policy | Terms | About

I want to retrieve the values of checkboxes using jQuery

How to use jQuery to get the values of the checked checkboxes, and i also ant to put it into a textarea immediately?

The following code will solve the problem for you

function writeInTextArea() {         

     var checkBoxVals = [];

     $('#c_b :checked').each(function() {





 $(function() {

   $('#c_b input').click(writeInTextArea);



Answer is