The following code snippet should display an alert if x
variable have text "I have right text right here" but my code does not work. Why?
var x = "Im the variable and I have right text right here";
if ("x:contains("I have right text right here").lenght > 0") {
alert("Match")
}