Answers for "how to change to input of a form dynamically"

0

how to change to input of a form dynamically

Chance: <input type="text" name="chance" value=""
   onkeyup="document.querySelector('input[name=payout]').value=this.value?1/this.value*98:''">

<br/><br/>Payout: <input type="text" name="payout" value=""><br/>
Posted by: Guest on August-15-2020
0

how to change to input of a form dynamically

<input type="text" name="chance" value="50"
onchange="document.getElementById('payout').value='1/'+this.value+'x 98'">
Posted by: Guest on August-15-2020
-1

how to change to input of a form dynamically

<input type="text" name="chance" value="50"
    onkeyup="document.getElementById('payout').value='1/'+this.value+'x 98'">
Posted by: Guest on August-15-2020

Code answers related to "how to change to input of a form dynamically"

Browse Popular Code Answers by Language