Javascript on mobile?

Hi! There is a link zolo-cms.EN.host1616859.serv16.hostland.pro/servic...
on desktop after switching to it, everything works as it should, take the data from the address bar using javascript and automatically searched for the required user domain. But as soon as you come through mobile is not happening anything( the Code is in the file js/get_domains.js .. That's it.
Her work is that she takes from the address bar data to select a domain name, loads the site name in the input, checks the domain zone and click on Submit (so detailed). Why not work on cellphones?

function getDataLink() {
 var searchStr = document.location.search;

 if(searchStr) {
 searchStr = searchStr.replace('?',").split('&').reduce(
function(p,e){
 var a = e.split('=');
 p[ decodeURIComponent(a[0])] = decodeURIComponent(a[1]);
 return p;
},
{}
);
$("#domain").val(searchStr.name);

 var zoneCheckbox = '#' +searchStr.zone;
$(zoneCheckbox).click();
$('.submit_check').click();

 return searchStr;

 } else {

return;
}
 }
June 7th 19 at 14:41
1 answer
June 7th 19 at 14:43
It's missing three very significant factors:
1) the Platform on which is not working.
2) the Browser in which to check.
3) version of jquery.

First you need to find out whether p. 3 p. 2 and 1.
Further, try not using click through submit form to do so.
And yet... who taught you to put a checkbox through the click? For this you need to use a prop.

p.s.
somehow, it seems that decodeURIComponent can not be supported on mobile platforms.

Find more questions by tags JavaScriptjQueryMobile development