Multiple Items

3 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€85.27
List Price:  €119.38
You save:  €34.11
£73.90
List Price:  £103.46
You save:  £29.56
CA$138.04
List Price:  CA$193.27
You save:  CA$55.22
A$151.80
List Price:  A$212.52
You save:  A$60.72
S$128.42
List Price:  S$179.79
You save:  S$51.37
HK$779.30
List Price:  HK$1,091.05
You save:  HK$311.75
CHF 79.53
List Price:  CHF 111.34
You save:  CHF 31.81
NOK kr998.02
List Price:  NOK kr1,397.27
You save:  NOK kr399.25
DKK kr636.63
List Price:  DKK kr891.31
You save:  DKK kr254.67
NZ$168.59
List Price:  NZ$236.03
You save:  NZ$67.44
د.إ367.21
List Price:  د.إ514.11
You save:  د.إ146.90
৳12,144.90
List Price:  ৳17,003.35
You save:  ৳4,858.44
₹8,802.32
List Price:  ₹12,323.61
You save:  ₹3,521.28
RM421.86
List Price:  RM590.63
You save:  RM168.76
₦151,700.82
List Price:  ₦212,387.22
You save:  ₦60,686.40
₨28,317.29
List Price:  ₨39,645.34
You save:  ₨11,328.04
฿3,178.18
List Price:  ฿4,449.58
You save:  ฿1,271.40
₺4,126.18
List Price:  ₺5,776.82
You save:  ₺1,650.64
B$541.01
List Price:  B$757.44
You save:  B$216.42
R1,755.79
List Price:  R2,458.18
You save:  R702.38
Лв166.78
List Price:  Лв233.50
You save:  Лв66.72
₩138,942.56
List Price:  ₩194,525.14
You save:  ₩55,582.58
₪332.48
List Price:  ₪465.49
You save:  ₪133
₱5,677.93
List Price:  ₱7,949.33
You save:  ₱2,271.39
¥14,778.77
List Price:  ¥20,690.87
You save:  ¥5,912.10
MX$1,868.11
List Price:  MX$2,615.43
You save:  MX$747.32
QR364.22
List Price:  QR509.92
You save:  QR145.70
P1,341.67
List Price:  P1,878.39
You save:  P536.72
KSh12,913.70
List Price:  KSh18,079.70
You save:  KSh5,166
E£4,824.01
List Price:  E£6,753.81
You save:  E£1,929.80
ብር14,275.08
List Price:  ብር19,985.68
You save:  ብር5,710.60
Kz91,186.38
List Price:  Kz127,664.58
You save:  Kz36,478.20
CLP$96,144.23
List Price:  CLP$134,605.76
You save:  CLP$38,461.53
CN¥712.95
List Price:  CN¥998.17
You save:  CN¥285.21
RD$6,311.09
List Price:  RD$8,835.78
You save:  RD$2,524.69
DA12,965.07
List Price:  DA18,151.62
You save:  DA5,186.54
FJ$225.25
List Price:  FJ$315.36
You save:  FJ$90.11
Q764.86
List Price:  Q1,070.83
You save:  Q305.97
GY$20,864.62
List Price:  GY$29,211.30
You save:  GY$8,346.68
ISK kr12,193.78
List Price:  ISK kr17,071.78
You save:  ISK kr4,878
DH906.85
List Price:  DH1,269.62
You save:  DH362.77
L1,669.84
List Price:  L2,337.85
You save:  L668
ден5,251.44
List Price:  ден7,352.23
You save:  ден2,100.78
MOP$802.02
List Price:  MOP$1,122.86
You save:  MOP$320.84
N$1,764.12
List Price:  N$2,469.84
You save:  N$705.71
C$3,672.73
List Price:  C$5,141.97
You save:  C$1,469.24
रु14,093.01
List Price:  रु19,730.78
You save:  रु5,637.77
S/351.51
List Price:  S/492.12
You save:  S/140.61
K416.52
List Price:  K583.15
You save:  K166.62
SAR375.16
List Price:  SAR525.24
You save:  SAR150.08
ZK2,382.55
List Price:  ZK3,335.67
You save:  ZK953.11
L432.46
List Price:  L605.47
You save:  L173
Kč2,077.74
List Price:  Kč2,908.93
You save:  Kč831.18
Ft33,554.86
List Price:  Ft46,978.15
You save:  Ft13,423.28
SEK kr937.68
List Price:  SEK kr1,312.79
You save:  SEK kr375.11
ARS$136,494.68
List Price:  ARS$191,098.01
You save:  ARS$54,603.33
Bs689.11
List Price:  Bs964.79
You save:  Bs275.67
COP$397,564.87
List Price:  COP$556,606.72
You save:  COP$159,041.85
₡50,563.92
List Price:  ₡70,791.52
You save:  ₡20,227.59
L2,614.57
List Price:  L3,660.50
You save:  L1,045.93
₲719,281.17
List Price:  ₲1,007,022.41
You save:  ₲287,741.24
$U4,014.67
List Price:  $U5,620.70
You save:  $U1,606.02
zł362.66
List Price:  zł507.74
You save:  zł145.08
Already have an account? Log In

Transcript

Hello, in this jQuery video, I am going to show you how to select multiple items. Instead of just one particular type one type could be the name of it such as you know, the actual type of element like div, span, paragraph image, for example, or an ID, which is what I've got here or a class. Imagine if all elements that have other No, say two different classes, they could be mixture of ID classes or any other type of selector. Let's say they have two different classes, actually hate the view is fine, the hw is fine. And let's say if this doesn't have the class, one of the reason you might not get the class might have certain slides in it. And maybe we only want the styling on divs, for example.

But we want the same code to be triggered when we click so This is a awesome click. And I do this. Save that if I reload, click that, it triggers or pumps out, awesome click, pumps it out. space there, reload. As you can see, they all work greener. But imagine if the code inside of each selector was quite complex with complex algorithm, you were sending data to a database, getting the back, you know, processing, it could be potentially 2013 lines of code, and you don't want to be duplicating it, you know, 234 more times when you can actually just select multiple items.

And the way you do that is very simple. You put comma, the other type of item that could trigger this piece of code using a click event, so dot class For example, and if I delete, just delete this. And to show prove that you know, the actual code is submitting, I'll say awesome click to reload. If I click that. Awesome click 2.0. Awesome click 2.0 and awesome CLI 2.0.

This was just, you know, going up slowly. So as you can see, even though all of them didn't have a common class, and you know, this one just had an ID, we was able to select all of them to trigger a specific, you know, in this case, only one line of code, but it can be multiple lines of code between these curly braces using the multiple items selector. That's a use select multiple items really simple. If you have any questions, feel free to pop me a message and I look forward to seeing you in the next video.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.