Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2013
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  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. var ids = jQuery('.results').find('li').map(function() {
  14. return $(this).attr('id').replace(/Record\-/,'');
  15. });
  16. }
  17.   );
  18. });
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement