how to get list of checkbox value in jquery?
['<title>jQuery Get Values of Selected Checboxes</title>', '<script>', 'ready(function() {', '$("button"). click(function(){', 'var favorite = [];', '$. each($("input[name=\'sport\']:checked"), function(){', 'favorite. push($(this). val());', '});']