Difference between revisions of "JavaScript:jQuery"

From Progzoo
Jump to: navigation, search
(Created page with "Introduction to jQuery and JavaScript ==Hello World== Create two files yourself; q1.html and q1.js – these have the following content: q1.html q1.js <pre><![CDATA[ <!doctype...")
 
(Hello World)
Line 2: Line 2:
 
==Hello World==
 
==Hello World==
 
Create two files yourself; q1.html and q1.js – these have the following content:
 
Create two files yourself; q1.html and q1.js – these have the following content:
q1.html q1.js
+
<table><tr><th>
 +
q1.html</th><th>q1.js</th></tr>
 +
<tr><td>
 
<pre><![CDATA[
 
<pre><![CDATA[
 
<!doctype html>
 
<!doctype html>
Line 10: Line 12:
 
</body>
 
</body>
 
]]></pre>
 
]]></pre>
 +
</td><td>
 
<pre><![CDATA[
 
<pre><![CDATA[
 
$(function(){
 
$(function(){
Line 15: Line 18:
 
});
 
});
 
]]></pre>
 
]]></pre>
 +
</td></tr></table>

Revision as of 10:24, 2 January 2013

Introduction to jQuery and JavaScript

Hello World

Create two files yourself; q1.html and q1.js – these have the following content:

q1.htmlq1.js
<![CDATA[
<!doctype html>
<script src="jquery.min.js"></script>
<script src="q1.js"></script>
<body>
</body>
]]>
<![CDATA[
$(function(){
  alert('Hello World');
});
]]>