Hi, My Name is Mg Htay Min Khaung, as a PHP Web Developer at Spiceworks Myanmar Co., Ltd. In this week, I would like to introduce and share the little basic knowledge about JQuery and Its Syntax.
JQuery is one of the most useful JS Libraries and is used in a lot of Web Apps and Designs all over the world.
What is JQuery ?
1. navigate (move around) a web page
2. select (choose) elements on a web page using the Document Object Model
3. create animations
4. handle events like user actions
5. create Ajax applications.
Selector called by Class Name or Id or Tag
First, you need to call event only after full page load or undefined will be occurred frequently.
$(document) – document
$(‘body’) – body Tag
$(‘button’) – button Tag
$(‘.continue’) – by ClassName
$(‘#continue’) – by ID Name
$(‘button.continue’) – by ClassName + Tag Name
$(‘.container *’) – all children under DIV with class name contianer
$(‘input[type=“text”]’) – call by Tag Name and its Attribute Value
This is the basic JQuery knowledge and syntax. I hope you will enjoy this post and I will try to upload and share more and more about IT Knowledge.