•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 426,493 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,261 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 697 | Replies: 2 | Solved
![]() |
•
•
Join Date: Oct 2007
Location: Penang Island, Malaysia
Posts: 173
Reputation:
Rep Power: 1
Solved Threads: 2
javascript Syntax (Toggle Plain Text)
var cBrand = document.getElementById('cBrand'); var cType = document.getElementById('cType'); var cStyle = document.getElementById('cStyle'); var cFrame = document.getElementById('cFrame'); var cGroupSet = document.getElementById('cGroupSet'); if (empty(cBrand) && empty(cType) && empty(cStyle) && empty(cFrame) && empty(cGroupSet)) { alert("Please Choose atleast 2 Criteria"); return false; }else{ return true; }
The above code is not working --------- Please advise. thx
"I might not be the BEST but I'm not like the REST!"
Where is the definition of the empty() function? It would be better if you posted a working copy of your code which we can directly use for testing your example rather than trying to figure out what seems to be wrong in the small snippet presented to us.
Last edited by ~s.o.s~ : Apr 18th, 2008 at 2:14 pm.
I don't accept change. I don't deserve to live.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
Happiness corrupts people.
Failing to value the lives of others cheapens your own.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
age amd avatar blue gene business chips database development dos economy energy enterprise environment hardware ibm ibm. news intel ibm it linux medicine memory microsoft news open source openoffice pc ps3 recession red hat remote working russia sun supercomputer supercomputing technology trends ubuntu working x86
- StoredProcedure If statement not working (MS SQL)
- if statement is not working... (C)
- Order by statement (PHP)
- missing return statement (Java)
- sql statement (Visual Basic 4 / 5 / 6)
- Problem w/ LIMIT in CASE statement (MySQL)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: How to change ONLY the color of text on MouseOver/Out?
- Next Thread: Random Topic JS



Linear Mode