Sorry, I left out too much context. Here's more of my HTML code:
Select Size: <span id="productSizeTitle"></span><br />
<p productSizeName="2 x 2" >2 x 2</p>
<p productSizeName="2 x 4" >2 x 4</p>
And, here's more of the Jquery:
function switchSize(span){
d = $(span);
var ps = "#productSizeTitle";
$(ps).empty().append(d.attr('productSizeName'));
var ps2 = "#productSizeTitle2";
$(ps2).empty().append(d.attr('productSizeName'));
}

