Solved

Searching for opposite of :filled with jQuery

Posted on 2011-09-26
2
310 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
ID: 36696864
$(':text').filter(function ()
{
    return $.trim($(this).val()).length === 0;
})
0
 

Author Closing Comment

by:newbieweb
ID: 36708983
Thanks!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

816 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

13 Experts available now in Live!

Get 1:1 Help Now