[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[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!

8.4

how to deselect the options in multiple select box

Asked by yazi in JavaScript

Tags: deselect, javascript, box, select

hi,

  anyhow know how to deselect the options value from a select box?

  here i have 2 multiple select box, when i click 'add', it will added to second select box. Now my problem is how deselect the second option when user click a 'drop' button.

 
<html>

<head>
<link rel="StyleSheet" href="style.css" type="text/css" />
<title>Add Courses</title>

<script language="JavaScript">
<!--
function populateForm() {
    for (var Current=0;Current < document.courseform.course.options.length;Current++) {
        if (document.courseform.course.options[Current].selected) {
            var defaultSelected = true, selected = true;
            var optionName = new Option(document.courseform.course.options[Current].value, document.courseform.course.options[Current].text, defaultSelected, selected)
            if (replacedfirst)
                var length = document.courseform.addedcourse.length;
            else
                var length = 0;
            document.courseform.addedcourse.options[length] = optionName;
            replacedfirst = true;
        }
    }
}

var replacedfirst = false;
//-->
</script>

</head>

<body>

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<form name="courseform" onSubmit="return false;">
  <tr>
    <td width="100%" colspan="3" class="Title">Course Selection</td>
  </tr>
  <tr>
    <td width="17%">&nbsp;</td>
    <td width="83%" colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td width="17%" valign="top">Available Courses</td>
    <td width="19%">
      &nbsp;&nbsp; </p>
    </td>
    <td width="64%">
      <p align="left">Added Courses</td>
  </tr>
  <tr>
    <td width="20%">
      <select size="10" name="course" multiple>
      <option selected value="COMM3604 Systems Analysis &amp; design">COMM3604 Systems Analysis & design</option>
        <option value="COMP3201 Computer Graphics">COMP3201 Computer Graphics</option>
        <option value="COMP3202 Modelling and Visualisation">COMP3202 Modelling and Visualisation</option>
        <option value="COMP3300 Operating Systems">COMP3300 Operating Systems</option>
        <option value="COMP3400 Models of Programming & Computation">COMP3400 Models of Programming & Computation</option>
        <option value="COMP3401 Compilers & Interpreters">COMP3401 Compilers & Interpreters</option>
        <option value="COMP3402 Concurrent & Real-Time Systems">COMP3402 Concurrent & Real-Time Systems</option>
        <option value="COMP3500 The Software Process">COMP3500 The Software Process</option>
        <option value="COMP3501 Human-Computer Interaction">COMP3501 Human-Computer Interaction</option>
        <option value="COMP3502 Information Security">COMP3502 Information Security</option>
        <option value="COMP3503 Interaction Design">COMP3503 Interaction Design</option>
        <option value="COMP3600 Reasoning about Software">COMP3600 Reasoning about Software</option>
        <option value="COMP3601 Software Specification">COMP3601 Software Specification</option>
        <option value="COMP3701 Principles of Artificial Intelligence">COMP3701 Principles of Artificial Intelligence</option>
        <option value="COMP3804 Information Technology Project">COMP3804 Information Technology Project</option>
        <option value="COMS3200 Computer Networks I">COMS3200 Computer Networks I</option>
        <option value="INFS3100 Introduction of Information Science">INFS3100 Introduction of Information Science</option>
        <option value="INFS3200 Advanced Database Systems">INFS3200 Advanced Database Systems</option>
        <option value="INFS3202 Web Information Systems">INFS3202 Web Information Systems</option>
      </select> </td>
    <td width="19%" align="center">
    <input type="submit" value=" Add " name="add " onClick="populateForm();"><br>
    <input type="submit" value="Drop" name="drop"></td>
    <td width="64%" valign="top">
      <p align="left">
      &nbsp;<select size="4" name="addedcourse">    
      <option value="">          
      </select></td>
  </tr>
  <tr>
    <td width="17%">&nbsp;</td>
    <td width="19%" align="center">&nbsp;</td>
    <td width="64%">&nbsp;</td>
  </tr>
  <tr>
    <td width="17%">&nbsp;</td>
    <td width="19%" align="center">
    <p align="right">&nbsp;</td>
    <td width="64%">&nbsp;</td>
  </tr>
  <tr>
    <td width="17%" valign="Top">&nbsp;</td>
    <td width="19%" align="center">
      &nbsp;&nbsp;</td>
    <td width="64%">
      <p align="center">
      <input type="submit" value="Submit" name="submit" style="float: right"></td>
  </tr>
  <tr>
    <td width="17%">&nbsp;</td>
    <td width="19%" align="center">
      &nbsp;</td>
    <td width="64%">
      &nbsp;</td>
  </tr>
  <tr>
    <td width="17%">&nbsp;</td>
    <td width="19%" align="center">
      &nbsp; </td>
    <td width="64%">
      &nbsp;</td>
  </tr>
</form>
</table>


</body>

</html>
[+][-]04/20/03 04:18 AM, ID: 8362182Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/20/03 07:59 AM, ID: 8362628Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/20/03 09:28 AM, ID: 8362868Accepted Solution

View this solution now by starting your 30-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

Zone: JavaScript
Tags: deselect, javascript, box, select
Sign Up Now!
Solution Provided By: fritz_the_blank
Participating Experts: 2
Solution Grade: A
 
[+][-]04/21/03 02:29 AM, ID: 8365519Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/21/03 07:30 AM, ID: 8366801Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/21/03 07:52 AM, ID: 8366926Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/21/03 06:49 PM, ID: 8370551Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/21/03 07:23 PM, ID: 8370656Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/22/03 06:05 AM, ID: 8372999Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy