I'm trying to do the following condition:
$(document).ready(function() {
if($("#content .productName").html().indexOf("JBL","Oversound")==-1) {
$("#pague-so").hide();}
});
In this case, I want the div # pay-so to be hidden if the div .productName contains the word JBL or Oversound in the text. As you can see, I did not succeed in the above condition. Could anyone give any suggestions?