【发布时间】:2020-02-26 05:56:43
【问题描述】:
我有一个选择选项,点击时效果很好。 现在,我希望当鼠标悬停在该选择选项上时该选择选项将打开。
我的 html 是:
<select name="select" id="inputselect" class="form-control">
<?php
$i=1;
for($i=1; $i<=10; $i++){ ?>
<option value="<?=$i?>">option_<?=$i?></option>
<?php }
?>
</select>
// script will be like this
$('#inputselect').mouseover(function(event){
// code for open the select option on mouse hober
});
提前致谢
【问题讨论】:
-
试试
$('#inputselect').trigger('mousedown') -
@DevsiOdedra 我是这个平台的新手,你能给我完整的脚本吗?
标签: javascript jquery html