Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
508 B
1
Indexable
Never
<!DOCTYPE html>
<html>

<body>
<input type="number" id="numri1" value="6">
<input type="number" id="numri2"
    value="10"><br><br>
    <input type="button" onclick="nderro()" value="Nderro vendet">
    <script>
        function nderro(){
            var numri3=document.getElementById('numri1').value;
            document.getElementById('numri1').value=
            document.getElementById('numri2').value;
            document.getElementById('numri2').value=numri3;
        }
    </script>
</body>
</html>
Leave a Comment