473,396 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

can i get help how to do validation for multiple dropdown list

149 100+
hi,
in my project...i need to use multiple drop-down list..i dont know how to validate it...can any one suggest me how to do validation..i had written the drop-down list as follows..

Expand|Select|Wrap|Line Numbers
  1.  
  2. <html>
  3. <body>
  4. <form name="">
  5.  
  6. <td><b>Balance : </b></td>
  7. <td><select NAME="mactprop" multiple="multiple">
  8.                                 <option value="LOW_BAL,">Low Balance</option>
  9.                                 <option value="VALIDITY,">Validity</option>
  10.                             </select></td>
  11.                         <td></td> 
  12. </form>
  13. </body>
  14. </html>
  15.  
  16.  
Thanks in advance,
madhu.
Jul 1 '10 #1
3 1884
Dormilich
8,658 Expert Mod 8TB
what exactly do you want to validate?

PS. you’re missing the form’s action attribute.
Jul 1 '10 #2
madhuriks
149 100+
hi,
here is my jsp page..

Expand|Select|Wrap|Line Numbers
  1. <html>
  2.  <body>
  3.  <form method="get" name="login.jsp">
  4.  
  5.  <td><b>Balance : </b></td>
  6.  <td><select NAME="mactprop" multiple="multiple">
  7.                                  <option value="LOW_BAL,">Low Balance</option>
  8.                                  <option value="VALIDITY,">Validity</option>
  9.                              </select></td>
  10.                          <td></td> 
  11.                          <input type="submit" value="SAVE" >
  12.  </form>
  13.  </body>
  14.  </html>
  15.  
  16.  
thanks in advance,
madhu.
Jul 1 '10 #3
Dormilich
8,658 Expert Mod 8TB
that doesn’t answer my question.
Jul 1 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: tjalle | last post by:
Hello, I have 5 different Dropdown lists on a form. There is no need to select an item in every one , at least one but could be all 5. I have a Submit buttom - how do I grab all all...
4
by: anonymous | last post by:
Hi Folks, I have a form with two Dropdown list boxes, which get loaded with data from Database. DropDownList1 gets data from Table1 and DropDownList2 gets data from Table2 Table1 has a...
0
by: Jeff | last post by:
After I bind the repeater control in the form_load event, it builds multiple lines based on the number of rows in the dataset. In the repeater control, I have a textbox and a dropdown list box. ...
6
by: Paul | last post by:
I am trying to setup a field validator and tried using the control to validate set to a dropdown list box but did not seem to work. Is there anyway to set this up or do you need to use client side...
1
by: Yoshitha | last post by:
Hi in my web form i had dropdown list control and using items property i;ve added "--- select Item-----" 0 1
3
by: JIM.H. | last post by:
Hello, I am suing SELECT * from MyTable in a stored procedure and populate dropdown list. By using followings: ddlSP.DataSource = DS; ddlSP.DataTextField = "PName"; ddlSP.DataValueField = "PID";...
1
by: ken | last post by:
Dear all, I want to add the function to gridview 1.) when edit mode, the textbox can validate before edit, e.g. if the fields is required field, user need to fill in something before edited ...
11
by: eureka | last post by:
Hi All, I'm training in Servlets, JSP and JavaScript, I have a web page in which there's a "StudentName" textbox and below it is a "Names" Dropdown list. Initially the Textbox is empty and...
7
by: =?Utf-8?B?Qw==?= | last post by:
I have a dropdown list as below. I add an onchnage attribute in my codebehind to call some Javascript. I want to get the selected text from my dropdown. What am I doing wrong below? ...
1
by: tech.fors | last post by:
Hi , How to make multiple select in dropdown list box using asp and access can anyone help me regarding this. thanking u in advance, Regards, tech.fors
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.