![](../icon/headdata.png)
¡ÒÃÊÃéÒ§¿ÍÃìÁª¹Ô´ Radio Button
¡ÒÃÊÃéÒ§ªèͧÃѺ¢éÍÁÙŪ¹Ô´ Radio Button à»ç¹¡ÒÃÃѺ¢éÍÁÙŨҡËÑÇ¢éÍ·Õè¡Ó˹´ÁÒãËé â´ÂÊÒÁÒöàÅ×Í¡ä´éà¾Õ§ËÑÇ¢éÍà´ÕÂÇà·èÒ¹Ñé¹ ¨Ðãªé¢éÍÁÙÅ»ÃÐàÀ·ãËéàÅ×Í¡ à¾È ªèǧÍÒÂØ ÇزԡÒÃÈÖ¡ÉÒÊÙ§ÊØ´ à§Ô¹à´×͹ ÍÒªÕ¾ à»ç¹µé¹
Tag
ª×èÍá·ç¡ | input |
µÓá˹è§á·ç¡ | ÍÂÙèÀÒÂã¹á·ç¡ <form>...</form> |
ÃٻẺ¡ÒÃãªéá·ç¡ | <input type="value" name="ª×èͪèͧ¡ÃÍ¡¢éÍÁÙÅ"> |
á͵·ÃÔºÔǵì | type ª¹Ô´¢Í§¡ÒÃÃѺ¢éÍÁÙÅ |
¤èÒ value | radio µÑÇàÅ×͡ẺàÅ×Í¡ä´é 1 µÑÇàÅ×Í¡ |
µÑÇÍÂèÒ§¡ÒÃãªé§Ò¹
<body>
<form name="input">
<b>ÇزԡÒÃÈÖ¡ÉÒÊÙ§ÊØ´ ?</b> <br>
<input type ="radio" name="degree" value="1">Á.»ÅÒÂ<br>
<input type ="radio" name="degree" value="2">».µÃÕ<br>
<input type ="radio" name="degree" value="3">».â·<br>
<input type ="radio" name="degree" value="4">».àÍ¡<br>
</form>
</body>
<b>ÇزԡÒÃÈÖ¡ÉÒÊÙ§ÊØ´ ?</b> <br>
<input type ="radio" name="degree" value="1">Á.»ÅÒÂ<br>
<input type ="radio" name="degree" value="2">».µÃÕ<br>
<input type ="radio" name="degree" value="3">».â·<br>
<input type ="radio" name="degree" value="4">».àÍ¡<br>
</form>
¡ÒÃáÊ´§¼Å