Answer the question
In order to leave comments, you need to log in
How to find an occurrence of text from the beginning of a string?
They set me an interesting task, which I can’t cope with - first I had to find the occurrence of the text in the text field, I did:
$(document).ready(function(){
$("#Editortextarea").bind('propertychange change input paste', function() {
var MesText = $('#Editortextarea').val();
if((MesText.indexOf('quote') > 0 ) || (MesText.indexOf('QUOTE') > 0 ))
{
alert('есть');
}
else
{
alert('нет');
}
});
});
[b]text{3,15}[/b],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question