1
4

3 回答 3

5

Use this:

$(".price:contains(\xA34.99)").html("From \xA34.99")
于 2012-07-11T10:24:36.900 回答
0

Even text would do your job

$('.price:contains("£4.99")').text('From: £4.99');
于 2012-07-11T10:15:22.417 回答
0

Before adding the word From, try this:

alert($('.price:contains("£4.99")').html());

What does it print? If the alert does prints nothing, it means the selector isn't working for some reason.

于 2012-07-11T10:27:53.097 回答