Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

jQuery select menus "empty test" vs. "undefined"

Posted on 2012-04-06
2
Medium Priority
?
390 Views
Last Modified: 2012-04-06
I am having difficulties dealing with the difference between "empty text" vs. "undefined", especially with <select> menus. I just want to know if any "value" exists in the select menu, I don't care about the difference between the two. Is there some easy way to get around this other than adding more "if" conditions?

Thank you!
0
Comment
Question by:bbdesign
2 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 2000 total points
ID: 37817515
0
 

Author Comment

by:bbdesign
ID: 37817530
OK, good enough. I guess there isn't any built-in Javascript way to do this. Thanks!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

885 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