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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:45:37+00:00 2026-05-24T05:45:37+00:00

I have a mass of code which after splitting it all uop with try

  • 0

I have a mass of code which after splitting it all uop with try and catch methods, I have norrowed it down to the following :

try {
    if (typeof $('select') == 'object') {
        $('select').each(function() {
            var selOb = $(this);
            var dWidth = 170;

            if (selOb.hasClass('mediumDropDown')) {
                dWidth = 100;
            } else if (selOb.hasClass('smallDropDown')) {
                dWidth = 50;
            } else if (selOb.hasClass('longDropDown')) {
                dWidth = 250;
           }

            $(this).chemSelectbox({
                width: dWidth,
                removeClass: ['chemSideTip']
            });
        });
    }
} catch (err) {
    alert(err.message + ' : checkout_init() 2');
}

and in particular,

$(this).chemSelectbox({ width: dWidth, removeClass: ['chemSideTip'] });

I have, removed both options so there it’s not that, yet my plugin works on all other browser bar ie.

does anyone know why this happens.

regards

  • 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-24T05:45:37+00:00Added an answer on May 24, 2026 at 5:45 am

    Replace all occurences of

    attributes.class
    

    with

    attributes['class']
    

    class is a reserved word in JS

    Because of that you’ll get a error “identifier expected” before(line 71 in the fiddle-demo), what will break the plugin.

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

Sidebar

Related Questions

We have a .NET application which our customers consider too large for mass deployment
I have developed a program (C#) which creates a SQL database using this code:
I have tried using the code mentioned in the link below to mass disable
Imagine we have following PHP code: if (true) { doSomething(); } But we want
I have some PHP code which looks roughly like this require_once 'cache.php'; require_once 'generator.php';
We have a mass emailing tool (.net based) that we developed in house. html
Have you guys had any experiences (positive or negative) by placing your source code/solution
Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have a n-tire web application and search often times out after 30 secs. How
Have you managed to get Aptana Studio debugging to work? I tried following this,

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.