JQuery Training Manual
JQuery Training Manual
Palle Technologies
V 2.0
jquery
• Jquery is a javascript library (it contains
predefined functions,constuctors,properties
etc)
• Jquery extension is .js
____ .js
Predefined
functions,constuctors,
properties ………..etc
jquery
• Jquery will reduce the JavaScript code for
implementing client side functionality
• Jquery will reduce dom manipulations code
• jquery is case sensitive
• Note: in JavaScript & jquery all function
parameters are optional.
accessing predefined jq code
a.html
Linking jquery and html
Jquery.3.3.1 .js
ajax();
jquery constuctor
//Jquery constructor
html
In JQuery
head body
Jquery constructor
Types of selectors
Class selectors input
id value
Id selectors Name type
Element selector “text” “tbName” “palle”
Elements with attribute selectors class onclick
------------
we can use other css3 selectors “R”
------------
as well
Jquery selectors are useful for identifying
Node references in the DOM tree
selectors in jquery
Id selectors
input
id value
type
Class selectors “text” “tbName” “palle”
class onclick
“R” ------------
Element selector ------------
head body
0 1 2
reference created
x using javascript x.value
input
type id value
“text” “tbName” “palle”
…… …… ……
……. ……. …….
var y= $(‘#tbName’) ; x.value x.val()
Input: palle
copy
Input: palle
copy
//same output
function chaining sample
Style_DataCopier.html
copy
palle
function chaining sample solution
Style_DataCopier.html
copy
palle
//same output