I use this snippet to find and count words on an external Website. How can I search case insensitive? For e.g.: Test, test or TEST - everything counts? I use the current jQuery-Version. Thank you four your tips.
function keyWordSearch() {
var kWord = jQuery('#keywords').val();
var webSite = jQuery('#urls').val();
var spanSelector = "span:contains(" + kWord + ")";
$.ajax({
url : webSite,
success : function(data) {
//check in span//
spanKeyword = 0;
var message = $('<div/>').append(data).find(spanSelector).each(function() {
spanKeyword += parseInt($(this).text().split(kWord).length - 1);
});
alert('span ' + spanKeyword);
}
});
};
` (such as your question) or something else. So you will be missing a lot of text.