html5,output标签应用举例

<form action="" id="myform" oninput="num.value=parseInt(num1.value)+parseInt(num2.value)">
        <input type="number" id="num1">+
        <input type="number" id="num2">=
        <output name="num" for="num1 num2"></output>            
    </form>

posted @ 2016-10-05 19:45  侯伟东  阅读(1310)  评论(0编辑  收藏  举报