By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,878 Members | 1,362 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,878 IT Pros & Developers. It's quick & easy.

jQuery change article background color

P: 679
How do i set the color of an article?
in the code by data-id

Expand|Select|Wrap|Line Numbers
  1. <section class="offers" id="featured-offers">
  2. <article id="item-3929173859" class="offer promo-bold" data-id="3929173858" data-location="Nysa">1</article>
  3. <article id="item-3929173859" class="offer promo-bold" data-id="3929173857" data-location="Nysa">2</article>
  4. <article id="item-3929173859" class="offer promo-bold" data-id="3929173856" data-location="Nysa">3</article>
  5. <article id="item-3929173859" class="offer promo-bold" data-id="3929173859" data-location="Nysa">4</article>
  6. </section>
Feb 13 '14 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,639
with the CSS attribute selector.
Feb 13 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.