Note that there are some explanatory texts on larger screens.

plurals
  1. POonblur in html select in UIWebView in iOS 7
    primarykey
    data
    text
    <p>I have number of html <code>&lt;select&gt;</code> elements in webpages which displaying in the app (in <code>UIWebView</code> control). Some of them allow multiple choice. I need to perform action when user change something in the list. For multiple choice I need to perform action after user finish rearranging checkboxes and click on 'done'.</p> <p>How it was implemented in iOS 6 (and works perfectly there):</p> <pre><code>&lt;select onblur="alert('do something...');"&gt;...&lt;/select&gt; &lt;select multiple='multiple' onblur="alert('do something...');"&gt;...&lt;/select&gt; </code></pre> <p>iOS 7 issue:</p> <pre><code>&lt;select onblur="alert('NOT ALWAYS WORK...');"&gt;...&lt;/select&gt; &lt;select multiple='multiple' onblur="alert('NOT ALWAYS WORK...');"&gt;...&lt;/select&gt; &lt;select onchange="alert('THIS WORKS');"&gt;...&lt;/select&gt; &lt;select multiple='multiple' onchange="alert('WORKS BUT NOT AS EXPECTED');"&gt;...&lt;/select&gt; </code></pre> <p><code>onblur</code> doesn't work relyable anymore. It works only if there is some other textbox or dropdown below. If it's the only dropdown/textbox on the page, it doesn't fire.</p> <p>I tried replace <code>onblur</code> to <code>onchange</code>, it works, but only for single choice. For multiple choice <code>onchange</code> fired when user change his selection, not when he finished (by clicking "done").</p> <p><strong>Any ideas how to solve this for both single and multiple dropdown lists in iOS 7?</strong></p> <p>Maybe I missed something obvious?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload