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

The Archive Base Latest Questions

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

title seems clear enough, but we never know. here’s my problem, i got a

  • 0

title seems clear enough, but we never know.

here’s my problem, i got a serie of checkbox, each one is associated to a list of choices.

ie:
Checkbox1

=> Opt1

=> Opt2

Checkbox2

=> Opt1

=> Opt2

etc.., (with about a dozen options per checkbox)

what i need to do is:

when user check a box, a prompt appear with a Select inside and the result is send as the value of the checkbox.

i’ve tryed some plugins (ie:jQuery Impromptu) but they all auto-close my select tag wich output something like that

<select></select><option></option><option></option>

anyone got a solution?

  • 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-24T23:30:42+00:00Added an answer on May 24, 2026 at 11:30 pm

    HTML

    <input type="checkbox" id="chk1"><select style="display: none;" id="sel1"><option>.........</select>
    <input type="checkbox" id="chk2"><select style="display: none;" id="sel2"><option>.........</select>
    <input type="checkbox" id="chk3"><select style="display: none;" id="sel3"><option>.........</select>
    

    JS

    $(document).ready(function()
    {
       $('input[type="checkbox"').click(function()
      {
        if($(this).checked)
        {
          $('#sel'+$(this).attr('id').toString().replace('chk', '')).show();
        }
        else
         $('#sel'+$(this).attr('id').toString().replace('chk', '')).hide();
      });
      $('select').change(function(){
         $('#chk' + $(this).attr('id').toString().replace('sel', '')).val($(this).val());
      });
    });
    

    I hope this helps.

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

Sidebar

Related Questions

Hopefully that title is clear enough. Anyways, it seems: [NSKeyedArchiver archiveRootObject:rootObject toFile:path]; is restricted
The title might not be easy to understand but it seems to me it
I'm not sure if the title is very clear, but basically what I have
I know the title of this question is stupid, but I couldn't come up
So I am not sure if my title is clear enough. I essentially have
Firstly let me clarify (if the title wasn't clear enough): I'm discussing System.Windows.Controls.DataGrid from
Firstly let me clarify (if the title wasn't clear enough): I'm discussing System.Windows.Controls.DataGrid from
Terrible title, I know... This works and gives me what I'm looking for, but
I think the question title seems to explain eveything. I want to detect whether
I'm sorry if my question title seems fundamentally uninformed. Let me explain what I

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.