title: HTML+JS: Set value of <select> in Safari Mobile (ios)
body: <p>First of all I'm sorry for my poor english</p>
  
  <p>I'm writing  small application with Sencha Touch 2, using "list" component and itemTpl with two html select tags.</p>
  
  <p>There is two the same selects with the same options.</p>
  
  <pre><code>&lt;select id="field_0" onChange="function_below_this_code"&gt;
      &lt;option value="0"&gt;0&lt;/option&gt;
      &lt;option value="10000"&gt;10000&lt;/option&gt;
      &lt;option value="20000"&gt;20000&lt;/option&gt;
      &lt;option value="30000"&gt;30000&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;select id="field_1" onChange="function_below_this_code"&gt;
      &lt;option value="0"&gt;0&lt;/option&gt;
      &lt;option value="10000"&gt;10000&lt;/option&gt;
      &lt;option value="20000"&gt;20000&lt;/option&gt;
      &lt;option value="30000"&gt;30000&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>in onChange attribute of each select (in one string)</p>
  
  <pre><code>x=parseInt(document.getElementById('field_0').value);
  y=parseInt(document.getElementById('field_1').value);
  if(x &gt; y &amp;&amp; y != 0) { document.getElementById('field_0').value = y; }
  </code></pre>
  
  <p>The user SHOULD NOT select value of first field (field_0) higher than second (field_1), so javascript check values for each field, compare it and if first value higher than second it put into first field value of second. </p>
  
  <p><strong>For example</strong>: (price from [20000] to [10000]) - this is wrong. Script will set value of FROM (first) field to 10000;</p>
  
  <p>It work perfect on my Mac, PC. It's not working well on iPhone.</p>
  
  <p>When I change second field value to "20000" and after that I change first field value to 30000, script won't work and value not became changed to 20000 automatically.</p>
  
  <p>As I sad it work grean on PC and Mac in Safari, Chrome and Firefox.</p>
  
  <p>The problem is: code is not working well on safari mobile (ios). </p>
  
  <p>Thank you for the help!</p>