]> git.scottworley.com Git - inverse-tax/commitdiff
All fields trigger recalculation
authorScott Worley <scottworley@scottworley.com>
Thu, 23 May 2019 23:57:31 +0000 (16:57 -0700)
committerScott Worley <scottworley@scottworley.com>
Thu, 23 May 2019 23:57:31 +0000 (16:57 -0700)
tax.html

index 51c323e4ae54a00f57d7c121b8e8b04e2df5211b..8a149b4ac2b39bf35d7d42b9ff2126af3cf8e07c 100644 (file)
--- a/tax.html
+++ b/tax.html
 <table>
 <tr>
 <td>
 <table>
 <tr>
 <td>
-Federal deductible<br/><input id="deductible_1" value="24000"/>
+Federal deductible<br/><input id="deductible_1" value="24000" onchange="calculate()" oninput="calculate()"/>
 </td>
 <td>
 </td>
 <td>
-State deductible<br/><input id="deductible_2" value="8258"/>
+State deductible<br/><input id="deductible_2" value="8258" onchange="calculate()" oninput="calculate()"/>
 </td>
 </tr>
 <tr>
 <td>
 Federal tax table<br/>
 </td>
 </tr>
 <tr>
 <td>
 Federal tax table<br/>
-<textarea id="tax_table_1">     0 10
+<textarea id="tax_table_1" onchange="calculate()" oninput="calculate()">     0 10
  18651 15
  75901 25
 153101 28
  18651 15
  75901 25
 153101 28
@@ -36,7 +36,7 @@ Federal tax table<br/>
 </td>
 <td>
 State tax table<br/>
 </td>
 <td>
 State tax table<br/>
-<textarea id="tax_table_2">      0  1
+<textarea id="tax_table_2" onchange="calculate()" oninput="calculate()">      0  1
   16030  2
   38002  4
   59978  6
   16030  2
   38002  4
   59978  6