i'd like to check for a presence of a particular word in the response text and perform some conditions there after, how do i do that. so far i can only get a "true" from php
function checkCellNo() {
var cnv = _("CellNo").value;
if (cnv != "") {
$("#CellNostatus")
.html('Checking your number: ...')
.css('background-image', 'url(images/IMG_8482.GIF)')
.append($('#CellNo').val());
var ajax = ajaxObj("POST", "ucheck.php");
ajax.onreadystatechange = function () {
if (ajaxReturn(ajax) == true) {
_("CellNostatus").innerHTML = ajax.responseText;
}
ajax.send("CellNocheck=" + cnv);
}
}
}
you can use
indexOf