Line 3: |
Line 3: |
| $(function () { | | $(function () { |
| | | |
− | $('#mw-beastx-pitchcalc').html('<input type="button" onclick="myFunction()" value="Calculate">'); | + | $('#mw-beastx-pitchcalc').html('<input type="button" id="myButton" onclick="myFunction()" value="Calculate">'); |
| }()); | | }()); |
| | | |
| function myFunction() { | | function myFunction() { |
− | $('#mw-bllength').value = 10; | + | $('#myButton').value = "Hello"; |
| }; | | }; |