我有很多复选框如下,
<li><input type="checkBox" name="areaofinterest" value="home_coo" id="home_coo" class="CheckBox" > Cooking</li> <li><input type="checkBox" name="areaofinterest" value="home_cra" id="home_cra" class="CheckBox"> Crafts</li> <li><input type="checkBox" name="areaofinterest" value="home_dec" id="home_dec" class="CheckBox"> Decorating</li> <li><input type="checkBox" name="areaofinterest" value="home_ent" id="home_ent" class="CheckBox"> Entertaining</li> <li><input type="checkBox" name="areaofinterest" value="home_gar" id="home_gar" class="CheckBox"> Gardening</li> <li><input type="checkBox" name="areaofinterest" value="home_hom" id="home_hom" class="CheckBox"> Home Improvement</li> <li><input type="checkBox" name="areaofinterest" value="home_mar" id="home_mar" class="CheckBox"> Marriage</li> <li><input type="checkBox" name="areaofinterest" value="home_par" id="home_par" class="CheckBox"> Parenting</li> <li><input type="checkBox" name="areaofinterest" value="home_pet" id="home_pet" class="CheckBox" > Pets</li> <li><input type="checkBox" name="areaofinterest" value="home_ret" id="home_ret" class="CheckBox"> Retirement</li>
如何使用jQuery获取检查值并输出为areaofinterest =“home_coo,home_mar,home_pet”?
非常感谢.