[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 344
  • Last Modified:

Searching for opposite of :filled with jQuery

I need to find all fields with nothing but whitespace in them.

What's the jQuery syntax for that?

Thanks.
0
newbieweb
Asked:
newbieweb
1 Solution
 
hosneylkCommented:
$(':text').filter(function ()
{
    return $.trim($(this).val()).length === 0;
})
0
 
newbiewebAuthor Commented:
Thanks!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now