1
I’m trying to make the following condition:
$(document).ready(function() {
if($("#content .productName").html().indexOf("JBL","Oversound")==-1) {
$("#pague-so").hide();}
});
In this case, I want the div #pagar-so to be hidden if div . productName contains the word JBL or Oversound in the text. As you can see, I was unsuccessful in the above condition. Could someone make a suggestion?
Tobymosque and Diego F, I could not insert this condition on the page I need. This page would be: http://www.premiershop.com.br/caixa-de-som-portatil-jbl-go-wireless-1173700/p
– Jean Hilgert