查找文本框是否被禁用或不使用jQuery [英] Find if a textbox is disabled or not using jquery
本文介绍了查找文本框是否被禁用或不使用jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
var isDisabled = $('textbox') .prop( '禁用');
这是小提琴: http://jsfiddle.net/unhjM/
I need to find if a textbox is disabled or enabled using Jquery.
解决方案
.prop('disabled')
will return a Boolean:
var isDisabled = $('textbox').prop('disabled');
Here's the fiddle: http://jsfiddle.net/unhjM/
这篇关于查找文本框是否被禁用或不使用jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文