2014年6月26日 星期四

[JQery] How to use jqery


 



First download jqery.js



HTML code



<!doctype html>
<html>
<head>
<script type="text/javascript" src="../js/jquery.js"></script> // import jquery.js
<meta charset="utf-8" />
<title>Demo</title>
</head>
<body>
<a href="http://jquery.com/">jQuery</a>

<script language="javascript">
$
( document ).ready(function() {
$
( "a" ).click(function( event ) {
alert
( "Hello Jquery. This is my first JQuery" );
event
.preventDefault();
});
});
</script>

</body>
</html>


Result



 


 



enter image description here

enter image description here



Reference




  1. jquery


  2. Posted in: About jQuery How jQuery Works



  3. jQuery BlockUI Plugin


0 意見:

張貼留言