I
I
Ivanq2015-11-02 11:37:27
css
Ivanq, 2015-11-02 11:37:27

File input in Safari?

Hello! There was a problem - everything works in all browsers, not in Safari.
I write this type of code:

<input type=file id="music1">
<select onchange="if(this.value=='b') music1.click();">
<option value=a>A</option>
<option value=b>B</option>
</select>

Specially shortened the code, do not make claims on the code.
Everywhere when you select b opens a window, in Safari - no.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Zachinalov, 2015-11-02
@SanDiesel

try music1.focus();

D
Denis Ineshin, 2015-11-02
@IonDen

Try it on jQuery: jsfiddle.net/25zz5jgc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question