Multiple Select

Results 1 to 3 of 3

Thread: Multiple Select

  1. #1
    Join Date
    Dec 1969

    Default Multiple Select

    Is that possible to retrieve all the selected value of a multiple select box before submitting the form? Coz I need to do form validation... Thankz for any response...

  2. #2
    Join Date
    Dec 1969

    Default RE: Multiple Select

    if you do <BR>str=request.form("fieldname"), then you will get all the values separated by a comma . eg: a,b,c<BR>you can then use the split function on it to convert it to an array.

  3. #3
    Rana Hossain Guest

    Default RE: Multiple Select

    in Javascript b4 form submit<BR><BR>for (var i=0;i&#060;document.forms[0].elements.length;i++) {<BR> if (document.forms[0].elements[i].name == &#039;selectName&#039;) {<BR> if (document.forms[0].elements[i].checked) newlist = newlist + document.forms[0].elements[i].value;<BR> }<BR>}<BR>now check newlist

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts