Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

hottab4

Newbie
  
  • Posts

    1
  • Joined

  • Last visited

hottab4's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Помогите плиз. Я сделал, как написал colaweb Задача, определить страну посетителя и подставить ему нужную информацию. Все работает в таком виде: window.onload = function () { var country = ymaps.geolocation.country; if(country == 'Беларусь') { jQuery(".currency").text('70 бел. р.'); } if(country == 'Россия') { jQuery(".currency").text('1690 р.'); } } Но если страна здесь не указана и пользователь пришел например из Украины, добавляем такой кусок: else { jQuery(".currency").text('Доставка X'); } но в таком случает если же я пришел из России, все равно срабатывает 'else' как исправить? заранее премного благодарен, спасибо :)
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.