Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7558787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:27:42+00:00 2026-05-30T12:27:42+00:00

I have multiple select boxes, say: ID, RollNo, Name and class. If ID is

  • 0

I have multiple select boxes, say: ID, RollNo, Name and class.

If ID is set ,I want to reset the RollNo, name and class to nothing or blank.

My web page

<?php echo $this->Form->input('id', 
                              array("options"=>$databaseFields->getOptions("id",1))); ?> 
<?php echo $this->Form->input('RollNo', 
                              array("options"=>$databaseFields->getOptions("rollno",1))); ?> 
<?php echo $this->Form->input('name', 
                              array("options"=>$databaseFields->getOptions("name",1))); ?> 
<?php echo $this->Form->input('class', 
                              array("options"=>$databaseFields->getOptions("class",1))); ?> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:27:43+00:00Added an answer on May 30, 2026 at 12:27 pm

    You can achieve this easily using jQuery. Since we don’t have much information about your HTML I present a more generalized solution.

    Add the following to your <head>:

    <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
    

    (or download the .js file and point to it’s local path)

    Then add something along these lines also on the <head> of your document:

    $(document).ready(function()
    {
        $("#selectID").change(function()
      {
          //Reset any select boxes
          $("#selectOther")[0].selectedIndex = 0;
      });
    });
    

    You can see a working example at http://jsfiddle.net/zPhnN/1/

    This should be modified to suit your needs, but hopefully it’s something to get you started.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page with multiple select boxes, as per the following: <select name=item-0-status
I have a grid view with multiple select check boxes. I want to return
I have multiple select boxes on the page all of which share the same
I have a multiple selection SELECT field which I don't want the end user
I have a stored procedure with multiple insert/select statements. Let's say I'm using the
I have I datagrid, on which I want to select multiple rows on a
I have a form where a user can add multiple select boxes for multiple
I have a buch of multiple select boxes and I wanted to line them
I have two g:select comboboxes that I want to add to the multiple select
Scenario : I have say 4 check boxes and users can select those checkboxes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.