I try this:
form['comment'] = '<blockquote>test</blockquote><a href="#">test</a> <Your reply here>';
if($(form['comment']).search('<Your reply here>'))
alert(1)
else
alert(0)
But have this error:
TypeError: $(form.comment).search is not a function
I fix this problem that:
if(form['comment'].value.search('<Вашият отговор тук>') != -1)
alert(1)
else
alert(0)
searchis the method of String, not jQuery object.[RESOLVED]or similar, mark the correct answer as accepted by clicking the checkmark beside it.