开发者

CSS Attribute selector when an attribute is not set (or how do I only select non disabled input[type="text"])

开发者 https://www.devze.com 2022-12-20 09:57 出处:网络
I\'m using JQuery to try to select the textboxs on a form that are not disabled. My efforts have开发者_如何学C been fruitless since I don\'t know how to select all the input[type=\"text\"] but also ar

I'm using JQuery to try to select the textboxs on a form that are not disabled. My efforts have开发者_如何学C been fruitless since I don't know how to select all the input[type="text"] but also are not set to disabled.

result so far:

$('#signature INPUT[type="text"]');


Try this:

$('#signature INPUT[type="text"]:not(:disabled)');


Try this:

$('#signature input:text[disabled!=disabled]');

In english, find all input elements inside #signature which are of type text and which do not have their disabled attribute set to disabled.

0

精彩评论

暂无评论...
验证码 换一张
取 消