Attributes

2 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 we are going to select elements based on a attribute. So let's just create a few elements. So I know operate just because can be very simple. And I'm gonna say element one and I'm going to add a attribute to this. So I am going to add an attribute or do maybe we add a target attributes from the from the school and our second one blank put this hello and we'll remove the target from the We are going to check if this particular attribute could actually be any attribute and then just the number, but we're just gonna stick with target blank. Once you understand this, you'll be good to go.

When we're going to detect if a element is clicked, or more specifically, a div is clicked, that has a attribute called target, and it has the value of blank and we can do this so really simple. div. Now we put square brackets indicate we are checking for an attribute. The target is the name of the attribute equals single quotation marks, not double could do conflict with this. Otherwise you can slip them around if you want double inside, and then here was going to put underscore blank click so click function We're just going to do a console log console dot log. And I'm gonna say target is blank, save that reload.

And if we go back, only the first two should trigger it, that trigger that triggers it. That triggers that. Third one does not trigger it, even though you're the target, it is not. The value is different, and the final one shouldn't trigger it. So that's how you selected based on attributes or to set the target attribute could be any attribute and any value. So that's it.

Thanks for watching. If you have any questions, feel free to call me message and as usual, 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.