Progress js cannot get the value value

            <progress id="t2" max="100" value="20" ></progress>
            <input type="button" onclick="t2();" />
            <script type="text/javascript">
                function t2(){
                    var ti2 = document.getElementById("-sharpt2").value;
                    ti2 += 10;
                    document.getElementById("-sharpt2").value = ti2;
                }
            </script>
Dec.09,2021

are you used to writing jquery , getElementById without -sharp

ti2 = document.getElementById("t2").value;
Menu