vendredi 22 mai 2020

JQuery - .is in an if statement

I'm trying to use .is() in an IF statement but its showing:

Uncaught SyntaxError: Unexpected token '.'

example code:

if ("#id > table > tbody").children().is("tr.abc")  {

  $("#id").css("display", "none")
  }

Can the boolean logic in .is() be used in IF statements?

Thank you

Aucun commentaire:

Enregistrer un commentaire