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

Popular posts from this blog

Using 'OR' and 'AND' in SQL Server -

c++ - NetBeans Remote Development with additional configuration -

visual studio - TFS will not accept changes I've made to a Java project -