如何使用jquery过滤空文本框和*标记文本框 [英] How can I filter the textbox which is empty and which has * mark using jquery
本文介绍了如何使用jquery过滤空文本框和*标记文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要过滤文本框是空的,文本框旁边有*标记,使用jquery我该怎么做。
我想过滤这样但它不起作用
< pre> var firstObj = $(AccId).find('input [type = text],textarea,select')。not( ':disabled')。filter(。*);
我尝试过: < br $>
var firstObj = $(AccId).find('input [type = text],textarea,select')。not(':disabled ')。filter(。*);
解决方案
< blockquote>(AccId).find('input [type = text],textarea,select')。not(':disabled')。filter(。*);
我尝试过:
var firstObj =
(ACCID).find( '输入[类型=文本],文本区域,选择')不( ':禁用')。过滤器( *);
I need to filter the textbox which is empty and which has * mark beside the textbox using jquery how can i do this.
I am trying to filter in this way but its not working
<pre>var firstObj = $(AccId).find('input[type=text],textarea,select').not(':disabled').filter(".*");
What I have tried:
var firstObj = $(AccId).find('input[type=text],textarea,select').not(':disabled').filter(".*");
解决方案
(AccId).find('input[type=text],textarea,select').not(':disabled').filter(".*");
What I have tried:
var firstObj =
(AccId).find('input[type=text],textarea,select').not(':disabled').filter(".*");
这篇关于如何使用jquery过滤空文本框和*标记文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文