Skip to content

Instantly share code, notes, and snippets.

Cuong Le cuongleqq

Block or report user

Report or block cuongleqq

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cuongleqq
cuongleqq / jquery-chain-ready.html
Created Jul 3, 2013
Example for my blog post, jquery ready event chaining
View jquery-chain-ready.html
<script type="text/javascript">
//First function to be executed
$('document').ready(function(){
alert('jQuery has been installed');
});
//Second function to be executed
$('document').ready(function(){
alert('Hello World!');
});
</script>
@cuongleqq
cuongleqq / jquery-ready-event.js
Last active Dec 19, 2015
Example for my blog - the ready event of jquery
View jquery-ready-event.js
$('document').ready(function(){
alert('jQuery has been installed');
});
@cuongleqq
cuongleqq / onload-normal.js
Last active Dec 19, 2015
Example for my jQuery tutorial - An example for the onload event
View onload-normal.js
window.onload = function(){
alert('The DOM was loaded');
};
@cuongleqq
cuongleqq / jquery-including.html
Last active Dec 19, 2015
Include jquery to project - my jquery tutorials
View jquery-including.html
<!DOCTYPE html>
<html>
<head>
<title>Study jQuery</title>
//Notice this line? This will include jquery to your page
<script type="text/javascript" src="js/jquery-2.0.2.js"></script>
</head>
<body>
</body>
</html>
@cuongleqq
cuongleqq / data-presentation.js
Last active Dec 19, 2015
data stick with presentation example
View data-presentation.js
$.getJSON("person.json",
function(person){
$("#personal-information").html(
'<div class="name">' + person.name + '</div>' +
'<div class="age">' + person.age + '</div>'
);
}
);
You can’t perform that action at this time.