¡ÒÃÊÃéÒ§¿ÍÃìÁª¹Ô´ Check Bok
Check box à»ç¹¡ÒÃÃѺ¢éÍÁÙŨҡ¡ÒÃãËé¤ÅÔ¡àÅ×Í¡¢éÍÁÙÅ·Õè¡Ó˹´ÁÒãËé â´ÂÊÒÁÒöàÅ×Í¡ä´éÁÒ¡¡ÇèÒ˹Öè§ËÑÇ¢éÍ check box ¨Ð¹ÔÂÁ¹ÓÁÒãªé¡Ñº¡ÒÃÃѺ¢éÍÁÙŪ¹Ô´·ÕèÊÒÁÒöàÅ×Í¡ä´éËÅÒ¢éÍ àªè¹ §Ò¹Í´Ôàá ÍÒËÒ÷ÕèªÍº ÍÒªÕ¾·Õèµéͧ¡Òà ÇزԡÒÃÈÖ¡ÉÒ à»ç¹µé¹
Tag
ª×èÍá·ç¡ | input |
µÓá˹è§á·ç¡ | ÍÂÙèÀÒÂã¹á·ç¡ <form>...</form> |
ÃٻẺ¡ÒÃãªéá·ç¡ | <input type="value" name="ª×èͪèͧ¡ÃÍ¡¢éÍÁÙÅ"> |
á͵·ÃÔºÔǵì | type ª¹Ô´¢Í§¡ÒÃÃѺ¢éÍÁÙÅ |
¤èÒ value | checkbok µÑÇàÅ×͡ẺàÅ×Í¡ä´éËÅÒµÑÇàÅ×Í¡ |
µÑÇÍÂèÒ§¡ÒÃãªé§Ò¹
<body>
<form name="input">
<b>§Ò¹Í´Ôàá¢Í§¤Ø³ (àÅ×Í¡ä´éÁÒ¡¡ÇèÒ 1)</b> <br>
<input type ="checkbox" name="hobby" value="1">àÅ蹡ÕÌÒ<br>
<input type ="checkbox" name="hobby" value="2">Íèҹ˹ѧÊ×Í<br>
<input type ="checkbox" name="hobby" value="3">»ÅÙ¡µé¹äÁé<br>
<input type ="checkbox" name="hobby" value="4">Ãéͧà¾Å§<br>
<input type ="checkbox" name="hobby" value="5">´Ù˹ѧ<br>
</form>
</body>
<b>§Ò¹Í´Ôàá¢Í§¤Ø³ (àÅ×Í¡ä´éÁÒ¡¡ÇèÒ 1)</b> <br>
<input type ="checkbox" name="hobby" value="1">àÅ蹡ÕÌÒ<br>
<input type ="checkbox" name="hobby" value="2">Íèҹ˹ѧÊ×Í<br>
<input type ="checkbox" name="hobby" value="3">»ÅÙ¡µé¹äÁé<br>
<input type ="checkbox" name="hobby" value="4">Ãéͧà¾Å§<br>
<input type ="checkbox" name="hobby" value="5">´Ù˹ѧ<br>
</form>
¡ÒÃáÊ´§¼Å