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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:27:37+00:00 2026-05-22T23:27:37+00:00

I am using jQuery and Joomla. Sinca I need to use jQuery.noConlict() due to

  • 0

I am using jQuery and Joomla. Sinca I need to use jQuery.noConlict() due to the use of other javascript libraries, I use jQuery instead of $

I have a set of tabs. I am using jQuery UI. I am using the fadein fadeout through opacity toggle, and the rotation (all working fine)

I want to change the file name of the img tag which is a child of the anchor tag in the tabs

tabs has typical structure (i.e. ul > li > a > img....</ul><div><the tab's content></div>)

(please, do not ask or suggest I change the image to be background image. I must keep structure this way)

With the code below, I am trying to add to the file name of the img, but it is not working. When the alert is triggered I continue to read the old file name, and of course, I see the old image

jQuery( "#tabs" ).bind('tabsshow', function(event, ui){

                        var image = jQuery(ui.tab).children();

                        image.attr("src").replace(".png","-active.png");

                        var liContent = image.attr("src");

                        alert(liContent);

                        }

    );
  • 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-22T23:27:38+00:00Added an answer on May 22, 2026 at 11:27 pm

    It should be like this:

    jQuery( "#tabs" ).bind('tabsshow', function(event, ui){
    
       var image = jQuery(ui.tab).children();    
       image.attr("src",image.attr("src").replace(".png","-active.png"));    
       var liContent = image.attr("src");    
       alert(liContent);    
     });
    

    Or Like this:

    jQuery( "#tabs" ).bind('tabsshow', function(event, ui){
       var image = jQuery(ui.tab).children();    
       var liContent = image.attr("src").replace(".png","-active.png");    
       alert(liContent);    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a custom joomla template which i load jquery in using the normal
Using jquery (javascript) need to display facebook user name in html page using facebook
im using a joomla 1.6.4 install and have a custom css/javascript drop-down menu in
Using jQuery , how can I dynamically set the size attribute of a select
Using jQuery, how would you find elements which have a particular style (eg: float:
I'm using Joomla 1.5. I have created a custom component that pulls data out
Is there a way to check if jQuery is loaded using PHP? I have
Brand new to CMS: With Joomla or other CMS, If I want to use
I am developing a web app using the Joomla Framework. The jQuery UI accordion
Using jQuery's UI Tabs. This is my code. <div id=tabs> <ul> <li><a href=#tabs-1>Find 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.