How to subtract two inputs from another : How can I subtract two text inputs from the main input,
something like this

    <input id="total" type="text " >
    <input id="v1" type="text " >
    <input id="v2" type="text " >

for example if i inserted 100 in the **total** input and then inserted 20 in **v1** and 30 in **v2**, the **total** input should change to 50..





