海詩網(wǎng) 知識百科 input(input)

input(input)

input, Disabled屬性是一個布爾屬性,它指定應(yīng)該禁用的元素。禁用的輸入元素不能使用和點擊。

設(shè)置disabled屬性是為了使用戶僅在滿足某些條件(如選擇復(fù)選框等)時才能使用該元素。).然后,您可以使用JavaScript刪除禁用的值,使元素可用。

提示:表單中禁用的元素將不會被提交。

注意:disabled屬性不適用于

有三種方法可以將禁用屬性添加到輸入框中。

Method 1: $(#ids). Combo box ({disabled: true})

Method 2: $(#ids). Attribute (Disabled, True)

Method 3: $(#ids). Attribute (disabled, disabled)

input

還有三種方法可以刪除disabled屬性。

Method 1: $(#areaSelect). Attribute (Disabled, False)

方法二:$(# areas select).移除屬性(禁用)

Method 3: $(#areaSelect). Attribute (disabled)

input

關(guān)于禁用屬性設(shè)置我們就知道這么多!

input,以上就是本文為您收集整理的input最新內(nèi)容,希望能幫到您!更多相關(guān)內(nèi)容歡迎關(guān)注。

本文來自網(wǎng)絡(luò),不代表海詩網(wǎng)立場,轉(zhuǎn)載請注明出處:http://x91880.com/n/169911.html
      

nginx(nginx啟動命令)

發(fā)表回復(fù)
聯(lián)系我們
聯(lián)系我們

在線咨詢: QQ交談

郵箱: 3587015498@qq.com

工作時間:周一至周五,9:00-17:30,節(jié)假日休息

關(guān)注微信
微信掃一掃關(guān)注我們
微信掃一掃關(guān)注我們
關(guān)注微博
返回頂部