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

  • Home
  • SEARCH
  • 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 6622499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:24:49+00:00 2026-05-25T21:24:49+00:00

I needed to update my jQuery library for some bugs that IE9 has with

  • 0

I needed to update my jQuery library for some bugs that IE9 has with <= v1.5.0. Upgrading the library to 1.5.1+ (even at current 1.6.4) breaks some script that I have on the page, though… (so of course, fix one issue, cause another)…

The script allows the user to add and subtract a group of input boxes (so, if they want to input a single line item, they do just that… but they can add unlimited amount of additional line items).

//ADDS ANOTHER USER
$(".add-user").click(function() {
    onemore = $("#userSelectBoxes").clone();
    onemore.find(":input").each(function() {
        $(this).val("");
    });

    $("#user_block > #userSelectBoxes:last").after(onemore);
    set_add_del();
    return false;
});

$(".removeable").click(function() {
    $(this).parent().remove();
    set_add_del();
    return false;
});

function set_add_del() {
    $('.remove_cat').show();
    $('.add_cat').hide();
    $('.add_cat:last').show();
    $("#user_block > #userSelectBoxes:only-child > .remove_cat").hide();
}

The add and remove buttons, in the HTML are as follows (and they just add another DIV of input fields basically):

<a href="#" class="remove_cat removeable">-</a>
<a href="#" class="add_cat add-user">+</a>

So with 1.5.0 – this would work properly, and let me click + or – unlimited amount of times and always function. With 1.5.1+, I can click the + ONCE, then nothing else works (adding OR deleting).

Any ideas? Hopefully I included all that would be needed here…

UPDATE 9/27/11 @ 5:05 PM EST
I followed the suggestions in the comments below. No luck. It actually performs exactly the same…

I should note that when I click for the 2nd time, not only does it no work (as I stated earlier), but it will pop me back up to the top of the screen as well.

Here is the latest code…

$(".add-user").click(function(){
                onemore = $(".userSelectBoxes").first().clone();                

                onemore.find(":input").each(function(){
                    $(this).val("");
                });

                $("#user_block > .userSelectBoxes:last").after(onemore);
                set_add_del();

                return false;
            });

            $(".removeable").click(function(){
                $(this).parent().remove();
                set_add_del();
                return false;
            });

            function set_add_del(){
            $('.remove_cat').show();
            $('.add_cat').hide();
            $('.add_cat:last').show();
            $("#user_block > .userSelectBoxes:only-child > .remove_cat").hide();
            }
  • 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-25T21:24:49+00:00Added an answer on May 25, 2026 at 9:24 pm

    You can use two different versions of jQuery on a page. You’ll need to call .noConflict() after loading the second version of the library. This will reset the value of the $ object to the first version of the library.

    Documentation

    <script type="text/javascript" src="jquery.1.5.0.js"></script>
    <script type="text/javascript" src="jquery.1.5.1.js"></script>
    <script type="text/javascript">
        $.noConflict();
    
        //'$' now refers to 1.5.0
        //'jquery' now refers to 1.5.1
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A while ago I needed a script to update some content every week, and
I need to have a toggle button where ... JQuery and Php needed here?
I have some jQuery code which retrieves content using getJSON(). There are n JSON
Is there some jquery magic that will let me do the following: [0- define
I'm currently using ajax and jquery to update search results with a form that
jquery attaches a click method on even things that aren't typically clickable like a
So my goal was to have a function in my jQuery code, that allowed
I have a razor cshtml view that uses jquery. I get following error during
I needed to update the system tray icon's text value, of my application, whenever
I needed some simple string encryption, so I wrote the following code (with a

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.