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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:44:35+00:00 2026-05-30T06:44:35+00:00

this is html part <!– html part –> <ul id=accordion> <li> <a href=# class=item

  • 0

this is html part

<!-- html part -->
<ul id="accordion">
  <li>
     <a href="#" class="item popular" rel="popular"></a>
      <ul id="online" class="list_friends">
        <li class="ch0"><img src="img/49992_720384020_1896998575_q.jpg" />a</li>
        <li class="ch1"><img src="img/48983_615523712_8495_q.jpg" />b</li>
        <li class="ch2"><img src="img/41621_717814907_4472_q.jpg" />c</li>
      </ul>
  </li>
</ul>

this is css part

#online li{
    width:179px;
    height:40px;
    margin:0px 0px 0px 0px;
    padding:0px 0px 0px 0px;
    font-size:17px;
    color:#999999;
    background:url(../img/green.png) no-repeat 8% 50%,url(../img/back_line.png);
}

I want to give a change to ch0 class
I want to keep url(../img/green.png), replace url(../img/back_line.png) to url(../img/login_line.png) and add url(../img/invite.png);

how to implement Jquery?

any thought

Thank you in advance.

  • 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-30T06:44:37+00:00Added an answer on May 30, 2026 at 6:44 am

    You can use .css('background', 'newValue'); to this.

    Something like this

    $(".ch0").css('background', 
       'url(../img/green.png) no-repeat 8% 50%,url(../img/login_line.png)';
    

    This will change the background image for all the items which has ch0 as class.

    Demo on jsFiddle.net.

    Hope this helps you.

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

Sidebar

Related Questions

Given this html: <div class=nation> <a href=library.php?type=nation&amp;id=America> <div class=nation-image> <img src=nations/America.png alt=snip /> </div>
I want to add HTML like this: <div><img src=item.png/>&nbsp;<a href=#><span>Hello</span></a></div> but in some cases
Before I explain... This is the HTML part: <div class=HeadingTabs> <ul> <li><a href=http://google.com class=TabLink>Google</a></li>
I have this HTML <div class=box> <a href=#goals> | <a href=#rules> | <a href=#controls>
I have something like this: //html <div class=panel> <div class=tools> <a href=#action1>Action 1</a> <a
This is the HTML part: div id=messages> <div class=messages> <?php if(isset ($unread)) { ?>
given this html: <li id=the_list_item><img src=some_img></li> and this selectior: $(#the_list_item) I want to get
This is part of my spark partial view (it is called TaskSearch): ${ Html.DropDownList(Search.Status,
Given this HTML: <ul id=topnav> <li id=topnav_galleries><a href=#>Galleries</a></li> <li id=topnav_information><a href=#>Information</a></li> </ul> And this
Is this html <div class='title centered'>SCE</div> <div class='description'> Magna tristique pulvinar porta montes, scelerisque

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.