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 - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -