Overview



examples/jquery-ex/jquery.html
<html>
<head>
  <title>JQuery example</title>
  <script src="../jq/jquery-1.9.1.min.js"></script>
  <script src="jq.js"></script>
</head>
<body>
<input id="name">
<input id="show" type="button" value="Show">
<div id="content">
</body>
</html>

examples/jquery-ex/jq.js
$( document ).ready(function() {
  console.log('document ready');
  $( '#name' ).val(42);

  $('#show').click(function() {
    console.log('clicked');
    var input = $( '#name' ).val();
    console.log(input);
    $( '#content' ).html(input);
  });

});