');
function addKeywordToSearchArray(keyValue){
keywordData.push(keyValue);
}
function removeKeywordFromSearchArray(curObj){
var curVal = curObj.siblings('span.keyword-text').html();
keywordData = removeElementFromArray(keywordData,curVal);
}
$(document).ready(function(){
$('#applySearchFilter').on('click',function(e){
e.preventDefault();
redirectUrl = BASEURL+'search-services/';
if(keywordData.length > 0){
redirectUrl = redirectUrl+'?keyword='+keywordData;
} else {
redirectUrl = redirectUrl+'?keyword=';
}
var searchType = $('#search_type').val();
if(searchType){
redirectUrl = redirectUrl+'&searchtype='+searchType;
}
var skill = [];var country = [];
$('.skill:checked').each(function(i){
skill[i] = $(this).val();
});
if(skill.length > 0){
redirectUrl = redirectUrl+'&skill='+skill;
}
$('.country:checked').each(function(i){
country[i] = $(this).val();
});
if(country.length > 0){
redirectUrl = redirectUrl+'&country='+country;
}
$('.price:checked').each(function(i){
price[i] = $(this).val();
});
if(price.length > 0){
redirectUrl = redirectUrl+'&price='+price;
}
//alert(redirectUrl); return false;
window.location.href=redirectUrl;
});
});
Do you like cookies? 🍪 We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
Learn more
Ok