0
Good afternoon, everyone,
I need that when I press a button, the same cause a specific
option
is selected on select
. For example, I own 3 buttons and 3 buttons options
:
<button>1</button>
<button>2</button>
<button>3</button>
<br><br>
<select>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
If I click the button
1
will select theoption
1
, if I click the button2
will select theoption
2
, and if I click the button3
will select theoption
3
.
I don’t know much about Javascript, but I think I’ll probably need to use.
I appreciate any help.
Just what I needed, thank you!
– Jean Franz
@Jeanfranz opa! Cool that solved ai :D was worth the strength!
– hugocsl
if it’s a tag
a
change something or just change thebutton
fora
?– Jean Franz
@Jeanfranz changes yes, you can use href as a reference instead of id for example, and put e.preventDefault in the pro link function not to interfere, or else vc puts id in A and leaves href=# even, theoretically it will work normal
– hugocsl