Section 16/17 - jQuery Flashcards

1
Q

Access jQuery element value

A

.val()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Access jQuery element attribute

A

.attr()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Access jQuery element text

A

.text()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Access jQuery element html

A

.html()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Add class to jQuery element

A

.addClass()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Remove class from jQuery element

A

.removeClass()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

For jQuery element, add class if not there or remove if there

A

.toggleClass()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Delete element from dom using jquery

A

$(…).remove()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly