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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:24:50+00:00 2026-06-01T06:24:50+00:00

I am working on select box and using jquery. HTML structure: <form method= action=

  • 0

I am working on select box and using jquery.

HTML structure:

<form method="" action="" name="form_controller">
        <select name="select_pages" id="selector">
            <option id="select_e1_home">Home</option>
            <option id="select_e1_resin_collection">Resin Collection</option>
            <option id="select_e1_metal_collection">Metal Collection</option>
            <option id="select_e1_decor_track">Decor Track</option>
            <option id="select_e1_accessories">Accessories</option>
            <option id="select_e1_acrylic_collection">Acrylic Collection</option>
            <option id="select_e1_novelty_collection">Novelty Collection</option>
            <option id="select_e1_wood_collection">Wood Collection</option>
            <option id="select_e1_specification">Specification</option>
        </select>
    </form>

Jquery:

$('#selector #select_e1_home').click(function(e){ e.preventDefault(); $('#mybook, #mybook1').booklet(1); });
$('#selector #select_e1_resin_collection').click(function(e){ e.preventDefault(); $('#mybook, #mybook1').booklet(3); });

When i select option from select box on the basis of id i am setting the booklet numbers on the DIV who’s is mybook and mybook1.

My problem is the above jquery is working properly in all browsers except Chrome and safari. Can any one point me in right direction.

  • 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-01T06:24:51+00:00Added an answer on June 1, 2026 at 6:24 am
    $('#selector').change(function(e){
            if(document.getElementById("selector").selectedIndex == 0){
                e.preventDefault(); $('#mybook, #mybook1').booklet(1);
            }
            else if(document.getElementById("selector").selectedIndex == 1){
                e.preventDefault(); $('#mybook, #mybook1').booklet(3);
            }
            else if(document.getElementById("selector").selectedIndex == 2){
                e.preventDefault(); $('#mybook, #mybook1').booklet(10);
            }
            else if(document.getElementById("selector").selectedIndex == 3){
                e.preventDefault(); $('#mybook, #mybook1').booklet(17);
            }
            else if(document.getElementById("selector").selectedIndex == 4){
                e.preventDefault(); $('#mybook, #mybook1').booklet(18);
            }
            else if(document.getElementById("selector").selectedIndex == 5){
                e.preventDefault(); $('#mybook, #mybook1').booklet(20);
            }
            else if(document.getElementById("selector").selectedIndex == 6){
                e.preventDefault(); $('#mybook, #mybook1').booklet(24);
            }
            else if(document.getElementById("selector").selectedIndex == 7){
                e.preventDefault(); $('#mybook, #mybook1').booklet(28);
            }
            else if(document.getElementById("selector").selectedIndex == 8){
                e.preventDefault(); $('#mybook, #mybook1').booklet(32);
            }
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a dropdown box dynamically in jQuery by appending html as follows: .append(<br><SELECT
<div class='divver'> Quantity:&nbsp; <select class='box' name='qty' id='quantity'> <option value='1'>1</option> <option value='2'>2</option> <option value='3'>3</option> <option
I am working with a search form that using the jqTransform jquery plugin. Its
I have a standard select box which I'm populating using jquery by appending options,
I'm working on a single-page site with sliding content. I'm using jquery.form.js and am
I have one select box with options and I am using jQuery Chosen on
Why this query doesn’t working: SELECT name FROM ( SELECT name FROM table1 UNION
Here is the query that I am working on: SELECT `unitid`, `name` FROM apartmentunits
I spent the last three days working on the collection _ select form helper
I am trying to select some select box items by their ID in jQuery

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.