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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:37:35+00:00 2026-05-21T18:37:35+00:00

I suspect this is ridiculously simple, but I can’t figure it out. We have

  • 0

I suspect this is ridiculously simple, but I can’t figure it out.

We have some simple code that we’ve written using jQuery, but I suspect it would work fine with xui, and since this is a mobile app saving the bits to download and the time to load all of the extra js in jQuery would be fantastic.

jQuery of courses uses $(”) as the select, but xui uses x$(”). Is there a technique I can use, so that I can just swap the js libraries and have it work?

Is it as simple as:
var $ = x$;

at the start of my script?

  • 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-21T18:37:35+00:00Added an answer on May 21, 2026 at 6:37 pm

    I haven’t tested this, but after the initial variable declarations in xui.js, there’s a declaration for x$ that looks like this:

    window.x$ = window.xui = xui = function(q, context) {
        return new xui.fn.find(q, context);
    };
    

    You can probably change it to this so that you can seamlessly test it against your code written for jQuery, since other than in the comments, x$ is not referenced in the xui.js code itself:

    window.$ = window.xui = xui = function(q, context) {
        return new xui.fn.find(q, context);
    };
    

    of if you wanted to leave x$ in there and just add $ as another selector, you can add it to the assignment like this:

    window.x$ = window.$ = window.xui = xui = function(q, context) {
        return new xui.fn.find(q, context);
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I suspect this code fragment in the controller should be responsible for that. But
I suspect this is impossible, but thought I'd ask. Say I have a class
I'm having brainfreeze, and I suspect this one is really simple. Consider this code,
I suspect this might be a very simple mistake but I've spent 3 hours
I suspect this is simple and I'm just missing it. I have a view
I have been looking around for a solution that implements this, but google always
I suspect this is a trivial query but hope someone can help me with
I suspect this is a fairly simple concept, but I haven't managed to find
I suspect this answer is in SO but I cannot find it. Some reports
I'm doing some databinding inside a ListView ItemTemplate, but I suspect this is 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.