I'm a little confuse by you code. I would drop using Id's for productSizeTitle and productSizeTitle2 or at least setting your css for them by id.
Instead I would apply a class to them like: .boldClass { font-weight:700; } Then for the jQuery code: $('#productSizeTitle').addClass("boldClass"); $('#productSizeTitle2').addClass("boldClass"); Does that help at all? -----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cfdvlpr Sent: Thursday, May 31, 2007 3:27 PM To: jQuery (English) Subject: [jQuery] Updating ID in two places I have this CSS: #productSizeTitle { font-weight:700; } #productSizeTitle2 { font-weight:700; } And, down in my HTML I want to display a span with this bold style twice: <span id="productSizeTitle">2 x 4</span> <span id="productSizeTitle2">2 x 4</span> And, I have some Jquery that updates these two span elements: var ps = "#productSizeTitle"; var ps2 = "#productSizeTitle2"; $(ps).empty().append(d.attr('productSizeName')); $(ps2).empty().append(d.attr('productSizeName')); I know there's a better way to do this. How can I condense this so that it takes up fewer lines of code?