I am using the following to find the $form object on my page:
var $form = $modal.find('#modal-form');
Now I need to select the buttons. How can I select each button inside the form, so I can apply a filter to it like this?
$('button').filter(function () { })
Either use another
find, within the context of$form:Or alternatively, use
$(selector [, context ]):Both will find all
buttondescendants of the given form.