Advertisement
Guest User

Untitled

a guest
Aug 9th, 2011
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function load_part_price_select(id, value) {
  2.     // alert(id);
  3.     // alert(value);
  4.     $('#' + id ).live('change',function() {
  5.         $.ajax({
  6.           url: '/parts/' + value + '/price',
  7.           type: 'get',
  8.           context: this,
  9.           dataType: 'script',
  10.           success: function(responseData) {
  11.             // alert('success: ' + responseData);  
  12.             $(this).nextAll("span.price:first").html(responseData);
  13.           }
  14.         });
  15.     });
  16. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement