Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2013
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function() {
  2. $('div#productsList').live('change', function() {
  3.     var resultsEl = $(this).siblings('.results');
  4.     resultsEl.load(
  5.     // get form action, using the jQuery.metadata plugin
  6.     $(this).parent().metadata().url,
  7.     // submit all form values
  8.     $(this.form).serialize(),
  9.     // callback after data is loaded
  10.     function(data, status) {
  11.     resultsEl.show();
  12.     // get all record IDs from the new HTML
  13.     $('div#productList').html(data);
  14.     });
  15.     }
  16.   );
  17. });
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement