国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
input type=radio -HTML元素

定義

創(chuàng)建單選鈕控件。

Creates a radio button control.

注釋

使用單選鈕可以將用戶可選擇的范圍限制到一組值中的一個(gè)。要實(shí)現(xiàn)這一功能,你必須為同一組的單選鈕取相同的 name 值。

當(dāng)用戶提交表單時(shí),只有選中的單選鈕才會(huì)提交其 name / value 的對值,如果該單選鈕有值的話。

要將一組單選鈕中的一個(gè)設(shè)置為默認(rèn)按鈕,請將該單選鈕的 checked 屬性設(shè)置為 true。

只有當(dāng)單選鈕指定了 name 屬性時(shí),用戶才能夠選擇該單選鈕。要取消對某單選鈕的選中,用戶必須選擇該單選鈕組中的另外一個(gè)。

此元素在 Internet Explorer 3.0 及以上版本的 HTML 和腳本中可用。

此元素是一個(gè)內(nèi)嵌元素。

此元素不需要關(guān)閉標(biāo)簽。

Use a radio button control to limit a user‘s selection to a single value within a set of values. To do this, you must link together each button in a set of radio buttons by assigning each button the same name.

When a user submits a form, a selected radio button only generates a name/value pair in the form data if the button has a value.

To select a radio button as the default button in a set, set the checked property of the button to true.

A user can select a radio button only if the button has a name. To clear a selected radio button, a user must select another button in the set.

The INPUT type=radio element is available in HTML and script as of Internet Explorer 3.0.

This element is an inline element.

This element does not require a closing tag.

示例代碼

<input type="radio" name="fruit" value = "Apple">蘋果<br>
<input type="radio" name="fruit" value = "Orange" checked>桔子<br>
<input type="radio" name="fruit" value = "Mango">芒果<br>

演示示例:使用單選鈕,讓用戶在一組選項(xiàng)里只能選擇一個(gè)

另見

input

相關(guān)教程和示例代碼

HTML表單

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
javascript判斷單選框或復(fù)選框是否選中方法集錦
javascript獲取select,checkbox,radio的值
Html form <input>表單標(biāo)簽type(text submit checkbox radio)控件元素
html中<radio>單選按鈕控件標(biāo)簽用法解析及如何設(shè)置默認(rèn)選中
觀察 HTML中id和name 的差異,被微軟忽悠過的同學(xué)自動(dòng)舉手
單選按鈕
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服