[Solved] If input box have given string then do this? [closed]


If you have an input field like

<input type="text" id="someid">

Then you can use

if ($("#someid").val().indexOf("franky") != -1) {
    alert("your input contains the name franky");
}

1

solved If input box have given string then do this? [closed]