Meine Website in WordPress.
Bitte helfen Sie. .
< /p>
Es funktioniert bei der Auswahl aus der Dropdown -Auswahl gut. Ich erhalte IP -Adresse und Position von Besucher < /p>
Code: Select all
$.getJSON('https://ipapi.co/json/', function(data) {
console.log(data.country_code);
if(data.country_code=='IN'){
$(".gt_selector").val('en|hi');
$("a[title='Hindi']").trigger('click');//not working
}
if(data.country_code=='MY'){
$(".gt_selector").val('en|ms');
}
});