Dropdown Menu compatible with mobiles

Dropdown Menu compatible with mobiles

Hello,

I have this script which have two dropdown menus to go to a specific url.

  1. var getURL = function(){
        var option1 = document.getElementById('dropDown1').value;
        var option2 = document.getElementById('dropDown2').value;
        var URL = 'http://www.domain.com/' + option1 + '/' + option2;
        if ((option1==2) && (option2==2)) {
        var URL = 'http://www.domain2.com/';
    }
        location.href=(URL);
    }
  2.     <select id="dropDown1">
        <option value="1">1</option>
        <option value="2">2</option>
        </select>
        <select id="dropDown2">
        <option value="1">1</option>
        <option value="2">2</option>
        </select> 
        <button onclick="getURL()">Run</button>    

I heard it's not compatible with all mobiles platform and i need to make it in Jquery.

Is it true? What would be the code of this script in Jquery?

Thanks for your help.