JavaScript on Sorting Form
$30-250 USD
Pago na entrega
URL: [login to view URL]
Need help with some javascript. Currently I have a sorting menu "Most Recent, Price, City Alphabet". The sorting functionality is working perfectly, however the javascript for switching between these is not working properly. I'm having issues with the removeParameter javascript.
Currently the sort will not clear out the prior search in the URL string. Example: If you sort via Price and then sort by Most Recent, it will clear our the price sort. But if you sort by City and then sort by Most Recent, it won't clear out the city sorting.
URL: [login to view URL]
Current code looks like:
$('select[name=sorting]').change(function() {
var current_option = $(this).find('option:selected').val();
if(current_option == 'recent') {
[login to view URL] = removeParameter([login to view URL], 'price');
}
else if(current_option == 'high') {
insertParam('price', 'high')
} else if(current_option == 'low') {
insertParam('price', 'low')
} else if(current_option == 'abc_desc') {
insertParam('city_sort', 'abc_desc')
} else if(current_option == 'abc_asc') {
insertParam('city_sort', 'abc_asc')
}
});
ID do Projeto: #6744917
Sobre o projeto
Concedido a:
Hello, I have checked website and code you have posted, I can help you and can start working right now, please contact me so we can talk. Thanks
10 freelancers estão ofertando em média $98 nesse trabalho
Hello Mike! With 99% completion rate, 720 successfully completed projects, and a 5.00 reputation (maximum possible, 5.0) (Yes, not even 4.99 average rating, can be verified on my profile page https://www.freelancer. Mais
Hello Sir, Thanks for detailed posting. I am ready to take this assignment. Please start a PM on this. Thanks & Regards, Anshulika Bansal
Hi! My name is Eugene. I'm experienced developer. I can handle your request. If you are interested please contact me and we will discuss details. Thank you.
FIRST TIME THIS IS NOT JAVASCRIPT, ITS PHP. AND I CAN DO IT IN 20 MINUTES JUST LET US TALK ABOUT DETAILS CHECK MY PROFILE MY CLIENTS ARE ALL THANKING FOR MY WORK