Hide HTML element (by class or ID) with PHP
As per our discussion in the comments, all you really need to do is .remove() the element. The following is the approach I’d take. First I’d check to make sure the element exists before attempting to remove it. If it’s there, then run jQuery’s .remove(). if( $( ‘#elementID’ ).length > 0 ) { $( ‘#elementID’ … Read more