Answer the question
In order to leave comments, you need to log in
How to use onclick in?
Good afternoon.
Please tell me in the following question:
There is an online fitting of glasses, in which you can change the width of the frames using the buttons:
<button onclick="fitmixInstance.setPupillaryDistance(40)">40</button>
<button onclick="fitmixInstance.setPupillaryDistance(80)">80</button>
<select>
<option>
<select >
<option value="-">Выбрать размер</option>
<option onclick="fitmixInstance.setPupillaryDistance(40)">40</option>
<option onclick="fitmixInstance.setPupillaryDistance(80)">80</option>
</select>
Answer the question
In order to leave comments, you need to log in
<select onchange="fitmixInstance.setPupillaryDistance(this.value)">
<option value="40">40</option>
<option value="80">80</option>
</select>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question