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 8076331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:14:25+00:00 2026-06-05T15:14:25+00:00

I am getting stuck in a page,where I’m using selectbox & checkbox,and they will

  • 0

I am getting stuck in a page,where I’m using selectbox & checkbox,and they will behave like – in the select box options are ABC,BCD,BDE,AD,BE & in the checkbox the option are A,B,C,D,E.When I am selecting (suppose) BDE(or AD) from select box….in the checkbox B,D,E(or A and D) will be checked(automatic).

Any idea…or input will be appreciated.

my code(given below):

Edited: one more thing is that if I am using selectbox like(mention below),and want to implemented checked checkbox according to the select box.Any clue…

<body>
<form>
<select name="item" id="item" class="item" onChange=list(this.value) >
<script type="text/javascript">
document.write("<option value=-1>Item</option>");
count=item.length;
for(i=0;i<count;i++)
document.write("<option value="+i+">"+item[i]+"</option>");
</script>
</select>
<table>
<td>
<input type="checkbox" name="A" id="A" value="A" >A<br>
<input type="checkbox" name="B" id="B" value="B">B<br>
<input type="checkbox" name="C" id="C" value="C">C<br>
<input type="checkbox" name="D" id="D" value="D">D<br>
<input type="checkbox" name="E" id="E" value="E">E<br>  
</td>
</table>
</form>
</body>

and on changing that particular select items(item) can all those option can be written in jquery(instead what you have answered) what u have mention(@ mohon ram)

and I have got a link here but not able to sort it on my answer perspective.

  • 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-06-05T15:14:26+00:00Added an answer on June 5, 2026 at 3:14 pm
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script language="javascript" src="http://code.jquery.com/jquery-1.7.2.js"></script>
    <script language="javascript">
    $(document).ready(function(){
    
    $("select#select_element").change(function(){
        var select_val = $.trim( $("select#select_element option:selected").attr("test") );
        var select_val_arr = select_val.split(",");
        $("input.checkbox").prop("checked",false);
        $.each(select_val_arr, function(i,val){
            $("input:checkbox#"+val).prop("checked",true);
        });
    });
    $("select#select_element").trigger("change");
    });
    </script>
    
    </head>
    <body>
    <select id="select_element">
        <option test="A,B,C" value="ABC">ABC</option>
        <option test="B,C,D" value="BCD">BCD</option>
        <option test="B,D,E" value="BDE">BDE</option>
        <option test="A,D" value="AD">AD</option>
        <option test="B,E" value="BE">BE</option>
    </select>
    
    <input type="checkbox" id="A" value="A" class="checkbox" />A
    <input type="checkbox" id="B" value="B" class="checkbox"  />B
    <input type="checkbox" id="C" value="C" class="checkbox"  />C
    <input type="checkbox" id="D" value="D" class="checkbox"  />D
    <input type="checkbox" id="E" value="E" class="checkbox"  />E
    <input type="checkbox" id="F" value="F" class="checkbox" />F
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I feel like I'm asking a lot of questions, but I keep getting stuck.
I have a HTML input box in my ASPX page like below <input id=txtID
I am new to rails and getting stuck a lot trying to develop my
I have a function (bobB) that seems to be getting stuck in a while
I have an INSERT query in Oracle 10g that is getting stuck on a
i posted the other day with practice questions i was getting stuck with and
I am putting together a dynamic photo gallery and getting stuck trying to place
I'm stuck in getting the product url in a product collection. I have this
I've been learning about web programming, and I am currently stuck on getting a
I'm just getting started with Visual Basic .NET and I'm currently stuck on the

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.