1/22
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
JQuery
lightweight JavaScript library
JQuery features
image slide shows
animation
event handling
document manipulation
head
place jquery script in _
jQuery access
download
CDN
JQuery syntax
$(selector).action()
$
sign to define/access jQuery
(‘selector’)
finds HTML elements

action()
performed on elements
jQuery methods
hide()
css()
hover() (on mouseover event)
slideToggle()
toggle()
html() (gets or sets HTML contents for selected elements)
document ready event
$(document).ready(function()){//your JavaScript statements and other jQuery statements}
JavaScript
client-side scripting language (browser interprets and renders)
JavaScript uses
display messages
validate forms
animate images
visual effects
body or head
place the javascript in the ___ or ___
variables
named containers that can store data
declaring variables
let =
const = (no reassignment)
3 ways to write
document.write();
greeting + name;
alert();
statement
instructions executed by the browser
JavaScript objects
webpage
HTML element
array
etc.
DOM
document object model
consists of all HTML elements
Every element is an object
DOM methods
getElementsByClassName(“id“)
getElementsByName(“name“)
getElementsByTagName(“name“)
querySelector(“selector”)
javascript methods
write()
alert()
prompt()
document properties
document.bgcolor
document.lastmodified
document.url (document location as a string)
HTML event (attributes)
onclick
onmouseover
onmouseout
onload