Training Guide: Programming in HTML5 with JavaScript and CSS3 Ebook

(Nora) #1

304 CHAPTER 6 Essential JavaScript and jQuery


</tr>
<tr>
<td>
<button id="btnNumber1">1</button>
</td>
<td>
<button id="btnNumber2">2</button>
</td>
<td>
<button id="btnNumber3">3</button>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td>
<button id="btnNumber0">0</button>
</td>
<td></td>
<td></td>
</tr>
</table>
</div>
</div>
<aside>
<p>Advertisements</p>
</aside>
<footer>
<p>
Copyright © 2012, Contoso Ltd., All rights reserved
</p>
</footer>
</div>
<script type="text/javascript">
$(document).ready(function () {
calculatorNamespace.initialize();
});
</script>
</body>
</html>
You must modify the tests to use jQuery.


  1. Open the CalculatorTests.html file and add a reference to the jQuery library.
    The completed CalculatorTests.html file should look like the following.
    <!DOCTYPE html>








Free download pdf