-1
I am making a calculator in javascript, but I have locked in how I can get the buttons of this calculator to use them in javascript.
Follow Calculator HTML code.
<table>
<tr>
<td><input type="button" class="num" value="9"></td>
<td><input type="button" class="num" value="8"></td>
<td><input type="button" class="num" value="7"></td>
<td><input type="button" class="oper" value="/"></td>
</tr>
<tr>
<td><input type="button" class="num" value="6"></td>
<td><input type="button" class="num" value="5"></td>
<td><input type="button" class="num" value="4"></td>
<td><input type="button" class="oper" value="-"></td>
</tr>
<tr>
<td><input type="button" class="num" value="3"></td>
<td><input type="button" class="num" value="2"></td>
<td><input type="button" class="num" value="1"></td>
<td><input type="button" class="oper" value="+"></td>
</tr>
<tr>
<td><input type="button" class="num" value="0"></td>
<td><input type="button" class="num" value="="></td>
<td><input type="button" class="num" value="C"></td>
<td><input type="button" class="oper" value="*"></td>
</tr>
Thank you very much, you helped me a lot!
– Lucas Samuel