功能1<input name="gongneng" type="checkbox" id="gongneng" value="1" />功能2<input name="gongneng" type="checkbox" id="gongneng" value="1" />功能3<input name="gongneng" type="checkbox" id="gongneng" value="1" />功能4<input name="gongneng" type="checkbox" id="gongneng" value="1" />功能5<input name="gongneng" type="checkbox" id="gongneng" value="1" /><button onclick='showval();'>试试</button><script type='text/javascript'> function showval()else } val=val.substr(1); alert(val);} </script>