Happy New Year 2Me jQ

STT Property Use Note
01 html() data data
02 text() data data
03 append()
prepend()
after()
before()
html or text = replace
03 = add
3-1, 32: text
3-3, 3-4: div, p, i
Link
04 attr() get or set values for atributes Link
05 val() get and set the values of form fields: textboxes, dropdowns, and similar inputs. code in html: input with id="name" and value="Your Name"
js: $(function() {
$("#name").attr('value', "I fixed my value");
var t =$("#name").val();
alert(t);
});>
06 addClass()
removeClass()
toggleClass()
add Class
remove Class
on if off/off if on
Link
07 css() use JSON syntax Link
08 width()
height()
height, width
inner:+padding
outer:+padding+
border
without margin
09 $(“”).remove() remove mine
10 – DOM parent()
parents()
children()
siblings()
next()/nextAll()
prev()/prevAll()
eq()
 Quiz Link
11 – Handing Events Mouse Event

click

dblclick

mouseenter

mouseleave

mouseover

data data
07 Keyboard

keydown

keyup

data data
07 Form

submit

change

focus

blur

data data
07 Document

ready

resize

scroll

data data
07 Object

pageX, pageY
type
which
data
target
preventDefault
stopPropagation

trigger

data data
07 slideToggle() data data
07 data data data
07 data data data
07 data data data
07 data data data
07 data data
07 data data data
07 data data data
07 data data data
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s