<span style="font-size:18px;"> var fruit = "";
$("input:checkbox[name='fruit']:checked").each(function() {</span>
<span style="font-size:18px;"> fruit += $(this).val() + ",";</span>
<span style="font-size:18px;"> });</span>
<span style="font-size:18px;"> var fruit = "";
$("input:checkbox[name='fruit']:checked").each(function() {</span>
<span style="font-size:18px;"> fruit += $(this).val() + ",";</span>
<span style="font-size:18px;"> });</span>