input
$('input:enabled').css("border", "2px groove red");選取可用的表單元素。
那是不是文中所有的可用input都會被選中執行.css("border", "2px groove red"),那復選框和單選按鈕為什么不行?
$('input:enabled').css("border", "2px groove red");選取可用的表單元素。
那是不是文中所有的可用input都會被選中執行.css("border", "2px groove red"),那復選框和單選按鈕為什么不行?
2018-07-02
舉報
2018-07-27
checkbox和radio的border不可以直接設置css.
? <input type="checkbox" style="border:2px groove red"/>這樣是沒有效果的。
所以$('input:enabled').css("border", "2px groove red")對于復選框和單選按鈕沒有效果
2018-07-04
?<input type="checkbox" checked="checked">
? ? ? ? <input type="checkbox">
? ? ? ? <input type="radio" checked> ? ? ??
? ? ? ? <input type="radio">
我問的是復選框和單選按鈕,不是text,這我還不知道啊?
2018-07-03
enable只能對啟用的表單元素起作用,代碼里面有下面的這個
上面這個就是啟用的表單,啟用表單沒有的就是禁用表單,不能操作
上面這個是禁用表單