Hot answers tagged


Actually, the anchor element to which you want to add an AJAX callback isn't a form element. The Ajax API page says how to trigger AJAX for a link. Add class 'use-ajax' to a link. The link will be loaded using an Ajax call. When using this method, the href of the link can contain '/nojs/' as part of the path. When the Ajax JavaScript processes the page, it ...

Only top voted, non community-wiki answers of a minimum length are eligible