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

java - How to Configure JAXRS and Spring With Annotations -

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

php - Create image in codeigniter on the fly -