I would like some help, I have searched but nothing seems to work.
I have the following code which is used in a website search function. My problem is because all values of the stored values are lower case without intonated words, I want the input keyword (search_text), to lose its intonation (Greek Language). I have managed to make it lower case as follows:
document.getElementById("txt_search").value = document.getElementById("txt_search").value.toLowerCase();
However, I am stuck with removing the intonation!
Basically I need some code to not only lower-case the input, but also remove the intonation.
Here is the code:
function ajaxPagingCall(page, queryString, fileName){
/*
$.get(site_url + "/modules/search/"+queryString+"&page="+page, function(data) {
$('#isShowLiveSearch').html(data);
});
*/
document.getElementById("txt_search").value = document.getElementById("txt_search").value.toLowerCase();
var search_txt = document.getElementById("txt_search").value;
var frmPrice=$('#price-Slider').val().split(';');
var frmFirstPrice = frmPrice[0];
var frmSecondPrice = frmPrice[1];
var frmDisc=$('#discount-Slider').val().split(';');
var frmFistDisc = frmDisc[0];
var frmSecondDisc = frmDisc[1];
var price_start=(frmFirstPrice)?frmFirstPrice:0;
var price_end=(frmSecondPrice)?frmSecondPrice:0;
var discount_start=(frmFistDisc)?frmFistDisc:0;
var discount_end=(frmSecondDisc)?frmSecondDisc:0;
var elemt=document.getElementsByName("chkcategory[]");
var webelemt=document.getElementsByName("website[]") ;
//alert(webelemt);
var arr=new Array();
var j=0;
for(var i=0; i<elemt.length;i++)
{
if(elemt[i].checked==true){
arr[j]=elemt[i].value;
j++;
}
}
var catids=arr.join(",");
var arr1=new Array();
var b=0;
for(var a=0; a<webelemt.length;a++){
if(webelemt[a].checked==true){
arr1[b]=webelemt[a].value;
b++;
}
}
var webids=arr1.join(",");
/********** Loading Script **********/
displayLoaderIn("replacediv");
/********** Enf of Loading Script **********/
$.ajax({
url: site_url+"ajax_search_deals.php",
type: "POST",
data: "webids="+webids+"&catids="+catids+"&search_txt="+search_txt+"&page="+page+"&startPrice="+price_start+"&endPrice="+price_end+"&startDisc="+discount_start+"&endDisc="+discount_end+"&show_filters="+show_filters+"&set_order_date="+set_order_date+"&set_order_price="+set_order_price+"&set_order_discount="+set_order_discount,
success: function(responce_msg){
$("#replacediv").html(responce_msg);
}
})
}