Trying to hide submit if overdraft
I am trying to determine if ANY table row on the page (including AJAXed
content) has the class of "overdraft" and if ANY on the page does, hide a
certain button. This is the code I am using but it isn't working. I don't
know if the code I am using takes into account dynamic data or if it only
runs at page-load.
(function() {
if( $('tr').hasClass('overdraft'){ $('#btnSAMSubmit').hide(); } // end if
})();
No comments:
Post a Comment