Solved

Searching for opposite of :filled with jQuery

Posted on 2011-09-26
2
289 Views
Last Modified: 2012-06-27
I need to find all fields with nothing but whitespace in them.

What's the jQuery syntax for that?

Thanks.
0
Comment
Question by:newbieweb
2 Comments
 
LVL 10

Accepted Solution

by:
hosneylk earned 500 total points
Comment Utility
$(':text').filter(function ()
{
    return $.trim($(this).val()).length === 0;
})
0
 

Author Closing Comment

by:newbieweb
Comment Utility
Thanks!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
CKEditor - will not function 7 30
radio button value 3 43
spservices different results in IE and Chrome. 11 18
Asp.net mvc 5 5 11
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now