@samccone was on the right track, but it doesn’t work for you because span.price is not the next element after select the # parts element (which I assume is the element you send to the load_part_price_select function).
This is one of the siblings , so try the following:
$(this).siblings("span.price:first").html(responseData);
Or try nextAll :
$(this).nextAll("span.price:first").html(responseData);
, " " , , 'this'. , "nextAll".
ajax- samcone:
function load_part_price_select(id, value) {
$('#' + id ).live('change',function() {
$.ajax({
url: '/parts/' + value + '/price',
type: 'get',
context: this,
dataType: 'script',
success: function(responseData) {
$(this).nextAll("span.price:first").html(responseData);
}
});
});
};