jquery - Trying to hide submit if overdraft -
i trying determine if table row on page (including ajaxed content) has class of "overdraft" , if on page does, hide button. code using isn't working. don't know if code using takes account dynamic data or if runs @ page-load.
(function() { if( $('tr').hasclass('overdraft'){ $('#btnsamsubmit').hide(); } // end if })();
if( $('.overdraft').length > 0) { $('#btnsamsubmit').hide(); }
Comments
Post a Comment