让input标签的range属性显示数值

<input type = "range" name = "salary" max = "20" min = "15" onchange="document.getElementById('show').innerHTML=value">
<span id="show"></span>

 

本文来自博客园,作者:木子欢儿,转载请注明原文链接:https://www.cnblogs.com/HGNET/p/15389936.html

posted @ 2021-10-10 17:23  木子欢儿  阅读(73)  评论(0编辑  收藏  举报