Advertisement

03.11.2008 at 03:14AM PDT, ID: 23231178
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.6

Validation Problems

Asked by mawingho in JavaScript, Hypertext Markup Language (HTML), PHP Scripting Language

I've attached the form below, and I want to use an external java file called script.js to validate this form.

I just want to check EACH listbox to make sure all listboxes are selected with the right value (i.e. NOT BLANK)

Anyone can help?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<link rel=stylesheet type="text/css" href="../css/style.css">
<script type="text/JavaScript" src="./js/script.js"></script>
</head>
<body>
<form name="assessment_detail" action="assessment_conf.php" method="post" onSubmit="return validation_assessment(this);">
<table>
<tr class=tbltitle>
<td>
<div align=center>Date</div>
</td>
 
<td>
<div align=center>Category</div>
</td>
 
<td>
<div align=center>For</div>
</td>
 
<td>
<div align=center>Reason</div>
</td>
 
<td>
<div align=center>*Approval</div>
</td>
 
</tr>
 
<input type=hidden name=leave_no0 value=16>
<tr class=bgcolor_new><td width = 120><input type=hidden name=leave_date0 value=2008-03-12>
<input type=hidden name=display_date0 value="12-Mar-2008 Wed">
12-Mar-2008 Wed</td><td>
<input type=hidden name=leave_category0 value="Annual Leave">Annual Leave</td><td>
<input type=hidden name=leave_time0 value="A">Full Day</td>
<td>
<input type=hidden name=leave_reason0 value=""></td>
<td width=100 align="center">
<select name="target_assessment[0]"><option value=""></option><option value="Approve">Approve</option><option value="Reject">Reject</option></select></td>
</tr>
<input type=hidden name=leave_no1 value=17>
<tr class=bgcolor_new><td width = 120><input type=hidden name=leave_date1 value=2008-03-29>
<input type=hidden name=display_date1 value="29-Mar-2008 Sat">
29-Mar-2008 Sat</td><td>
<input type=hidden name=leave_category1 value="Training Leave">Training Leave</td><td>
<input type=hidden name=leave_time1 value="T">Full Day</td>
<td>
<input type=hidden name=leave_reason1 value="CL">CL</td>
<td width=100 align="center">
<select name="target_assessment[1]"><option value=""></option><option value="Approve">Approve</option><option value="Reject">Reject</option></select></td>
</tr>
<input type=hidden name=num_leave value=2>
<input type=hidden name=target_staffno   value=503410>
<input type=hidden name=target_staffname value="Ma Wing Ho, Billy">
<br><br>
<div class=newsize2>Fields marked '*' are mandatory</div>
<br>
<input type="submit" value="Submit">&nbsp;&nbsp; 
<input type="reset" value="Reset">
</form> 
</body>
[+][-]03.11.2008 at 03:45AM PDT, ID: 21094451

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, Hypertext Markup Language (HTML), PHP Scripting Language
Sign Up Now!
Solution Provided By: pratima_mcs
Participating Experts: 2
Solution Grade: B
 
 
[+][-]03.11.2008 at 03:49AM PDT, ID: 21094466

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628