jQuery for Beginner

jQuery is a JavaScript Library. It simplifies the javascript programming. If you have already knowledge of HTML, CSS, and Basic JavaScript, you are welcome to learn jQuery. Popular companies like Google, Microsoft, IBM, and Netflix also use jQuery for their many works.

Syntax of jQuery

$(document).ready(function(){
            
});


shorter version

$(function(){

});

jQ//speed can be includeuery functions

//speed can be include
hide()
show()
toggle()



attr("href") //pick attribute value
data('id')  //if tag has attribute data-id="something"


append()
text()

animation with jQuery

//speed can be include
fadeToggle()
fadeIn()
fadeOut()
fadeTo(5000,.5) //with opacity and speed

event

mouse
======
click
dblclick
mouseenter
mouseleave

keyboard
=======
keypress //when typing 
keydown  //when typing
keyup //when typing end

form
====
submit  //on submit
change //when data change
focus //when inputing
blur //when go another input field

document/window
=============
load
resize //when screen resizing
scroll //when scrolling
unload //removed now

Leave a Comment