method fix

Select the ajax “method” from closest element containing it