The aim of this challenge is to create a simple calculator that does the 4 basic operations:
We need to provide:
The end result could look like this:
You can check the expected solution here here.
The following HTML could be copied to start with:
<form>
<table>
<tr>
<th>Number</th>
<th>Operation</th>
<th>Number</th>
<th></th>
<th>Result</th>
</tr>
<tr>
<td><input type="text"></td>
<td>
<select>
<option value="+">+</option>
<option value="-">-</option>
<option value="*">x</option>
<option value="/">⁄</option>
</select>
</td>
<td><input type="text"></td>
<td><input type="submit" value="="></td>
<td><input type="text"></td>
</tr>
</table>
</form>
You might need to use the following:
id