Wednesday, 20 July 2011

Trying jQuery in W3Schools TryIt Editor

Click here to open W3Schools TryIt Editor

Copy and paste the below html into the editor. Cick "Edit and Click Me>>" button on top to see the result. Now you can add your own HTML and JavaScript and test it.

<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script language="javascript">

//alert(jQuery);

$(document).ready(function () {

alert($('div').length);

});
</script>

</head>

<body>

<div>Test1</div>
<div>Test2</div>

</body>
</html>

No comments:

Post a Comment