Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="jquery-min.js"></script>
<script type="text/javascript">
    function change( inputId ) { 
        var button = document.getElementById('b_' + inputId);
        button.value = button.value === 'off' ? 'on' : 'off';
    }
</script>
</head>
<body>
<form>
    <table>
        <tr>
            <td>one:</td><td><input name="one" id="one" /></td>
            <td><input type="button" id="b_one" value="off" onclick="change('one')"></td>
        </tr>
        <tr>
            <td>two:</td><td><input name="two" id="two" /></td>
            <td><input type="button" id="b_two" value="off" onclick="change('two')"></td>
        </tr>
    </table>
    <br /><br /><input type="submit" value="ok"/><br />
</form>
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers