0

let searchParams = new URLSearchParams(window.location.search)
        if(searchParams.has('state_short')){
          let param = searchParams.get('state_short');
          setTimeout(function(){ 
                    if(param=='NSW'){
                      $('.multiselect #checkboxes label input[value="NSW"]').click();
                    }else if(param=='VLC'){
                      $('.multiselect #checkboxes label input[value="VLC"]').click();
                    }else if(param=='QLD'){
                      $('.multiselect #checkboxes label input[value="QLD"]').click();
                    }else if(param=='SA'){
                      $('.multiselect #checkboxes label input[value="SA"]').click();
                    }else{
                      alert('Your searched location not found, please use the State filter');
                    }
            }, 500);
        }

Jagdish Sarma Asked question November 28, 2022
Add a Comment