Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- $('div#productsList').live('change', function() {
- var resultsEl = $(this).siblings('.results');
- resultsEl.load(
- // get form action, using the jQuery.metadata plugin
- $(this).parent().metadata().url,
- // submit all form values
- $(this.form).serialize(),
- // callback after data is loaded
- function(data, status) {
- resultsEl.show();
- // get all record IDs from the new HTML
- $('div#productList').html(data);
- });
- }
- );
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement