开发者

Add a range of numbers to the select > option tag in HTML?

I am making a date selector an I would was wondering if there is a way to set a range of numbers to accomplish this. Take the months field for example, I would like to set a range from 01-12. is this possible in just plain HTML.

W开发者_如何学JAVAhat I really want to know is what is the accepted practice for doing this.


Think here you can find the answer :)

Accepted practice is to use some script language like PHP, JavaScript or other....


Try This For Range value

function show_value(x)
            {
             document.getElementById("slider_value").innerHTML='$'+x;
            }
<span id="slider_value" style="color:red;font-size: 19px; vertical-align: middle; padding-left: 45%;">
<input type="range" min="0" max="10000" name="sld3" value="100" onchange="show_value(this.value);">

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜