I have a .js file that is called by several .jsp pages. What I need to do in this particular .js file is to call a specific function only if the "Save" button is present on the .jsp page. How to check if a button exists? Currently, in the .js file, the button refers to this method: $ ('Button [ID = save]')
How to check if such a button exists? Hope someone can advise. Thanks.
source share