-
Notifications
You must be signed in to change notification settings - Fork 0
/
basic.html
20 lines (17 loc) · 745 Bytes
/
basic.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<html>
<head>
<title>Introduction KnockoutJS</title>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/knockout-min.js"></script>
<script type="text/javascript" src="js/basic.js"></script>
</head>
<body>
<h2>Introduction KnockoutJS</h2>
<a href="http://learn.knockoutjs.com/#/?tutorial=intro">Read more</a>
<br /><br />
<p>First name: <input data-bind="value: firstName" /></p>
<p>Last name: <input data-bind="value: lastName" /></p>
<p>Full name: <strong data-bind="text: fullName"></strong></p>
<button data-bind="click: capitalizeLastName">Go caps last name</button>
</body>
</html>