1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <MetaCharSet= "UTF-8">5 <title>Insert Title here</title>6 <Scripttype= "Text/javascript"src=".. /js/jquery-1.8.2.js "></Script>7 </Head>8 <Body>9 <inputtype= "checkbox"value= "Basketball"checked= "Checked">Basketball</input>Ten <inputtype= "checkbox"value= "Volleyball">Volleyball</input> One <inputtype= "checkbox"value= "Badminton" >Badminton</input> A <inputtype= "checkbox"value= "Table tennis">Table tennis</input> - <inputtype= "button"value= "Number of selected"></input> - <inputtype= "button"value= "Show selected value in turn"></input> the - - <Scripttype= "Text/javascript"> - $(": Button:first"). Click (function(){ + - Alert ($ (": checkbox:checked"). Size ()); + }); A $(": Button:last"). Click (function(){ at $(": checkbox[checked= ' checked ']"). each (function(){ - Alert ($ ( This). Val ()); - }); - - }); - </Script> in </Body> - </HTML>