Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>FunctionSelector</title>
        <script type="text/javascript" src="js/main.js"></script>
        
    </head>
    <body>
        <label for="selector"><Chose a Function:</label>
        <select id="selector">
            <option value="add">Addition</option>
            <option value="mult">Multiplication</option>
            <option value="Rand">Randomise</option>
       
       
       </select>
       <input type="number" id="txtbox" style="width: 50px;"   required maxlength="5">
       <input type="number" id="txtbox1" style="width: 50px;"  required maxlength="5">
       <button onclick=main()>Calculate<button
        <h1 id="awser"></h1>
    </body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
azetoypro
0viewers