HTML Value

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.85
List Price:  €120.20
You save:  €34.34
£74.18
List Price:  £103.85
You save:  £29.67
CA$138.49
List Price:  CA$193.89
You save:  CA$55.40
A$154.19
List Price:  A$215.87
You save:  A$61.68
S$128.56
List Price:  S$179.99
You save:  S$51.43
HK$780.02
List Price:  HK$1,092.06
You save:  HK$312.03
CHF 80.56
List Price:  CHF 112.80
You save:  CHF 32.23
NOK kr1,017.10
List Price:  NOK kr1,423.98
You save:  NOK kr406.88
DKK kr640.90
List Price:  DKK kr897.29
You save:  DKK kr256.38
NZ$170.91
List Price:  NZ$239.28
You save:  NZ$68.37
د.إ367.21
List Price:  د.إ514.11
You save:  د.إ146.90
৳12,215.57
List Price:  ৳17,102.28
You save:  ৳4,886.71
₹8,765.97
List Price:  ₹12,272.71
You save:  ₹3,506.74
RM421.45
List Price:  RM590.05
You save:  RM168.60
₦153,341.66
List Price:  ₦214,684.46
You save:  ₦61,342.80
₨28,464.71
List Price:  ₨39,851.74
You save:  ₨11,387.02
฿3,249.22
List Price:  ฿4,549.04
You save:  ฿1,299.82
₺4,102.40
List Price:  ₺5,743.53
You save:  ₺1,641.12
B$541.09
List Price:  B$757.55
You save:  B$216.46
R1,764.29
List Price:  R2,470.07
You save:  R705.78
Лв167.93
List Price:  Лв235.11
You save:  Лв67.18
₩139,506.60
List Price:  ₩195,314.83
You save:  ₩55,808.22
₪336.71
List Price:  ₪471.40
You save:  ₪134.69
₱5,695.68
List Price:  ₱7,974.18
You save:  ₱2,278.49
¥14,757.16
List Price:  ¥20,660.62
You save:  ¥5,903.45
MX$1,865.20
List Price:  MX$2,611.36
You save:  MX$746.15
QR364.03
List Price:  QR509.66
You save:  QR145.63
P1,342.70
List Price:  P1,879.84
You save:  P537.13
KSh12,918.70
List Price:  KSh18,086.70
You save:  KSh5,168
E£4,858.63
List Price:  E£6,802.28
You save:  E£1,943.64
ብር14,273.39
List Price:  ብር19,983.32
You save:  ብር5,709.92
Kz91,186.38
List Price:  Kz127,664.58
You save:  Kz36,478.20
CLP$96,253.37
List Price:  CLP$134,758.57
You save:  CLP$38,505.20
CN¥715.93
List Price:  CN¥1,002.34
You save:  CN¥286.40
RD$6,240.14
List Price:  RD$8,736.45
You save:  RD$2,496.30
DA12,995.01
List Price:  DA18,193.53
You save:  DA5,198.52
FJ$226.43
List Price:  FJ$317.01
You save:  FJ$90.58
Q769.33
List Price:  Q1,077.09
You save:  Q307.76
GY$20,991.37
List Price:  GY$29,388.77
You save:  GY$8,397.39
ISK kr12,295.77
List Price:  ISK kr17,214.57
You save:  ISK kr4,918.80
DH903.60
List Price:  DH1,265.08
You save:  DH361.47
L1,668.87
List Price:  L2,336.49
You save:  L667.61
ден5,282.82
List Price:  ден7,396.16
You save:  ден2,113.34
MOP$807.29
List Price:  MOP$1,130.24
You save:  MOP$322.94
N$1,760.41
List Price:  N$2,464.64
You save:  N$704.23
C$3,692.23
List Price:  C$5,169.27
You save:  C$1,477.04
रु14,051.33
List Price:  रु19,672.43
You save:  रु5,621.09
S/351.17
List Price:  S/491.66
You save:  S/140.48
K424.25
List Price:  K593.96
You save:  K169.71
SAR375.17
List Price:  SAR525.26
You save:  SAR150.08
ZK2,337.22
List Price:  ZK3,272.20
You save:  ZK934.98
L434.09
List Price:  L607.75
You save:  L173.65
Kč2,107.06
List Price:  Kč2,949.97
You save:  Kč842.91
Ft34,085.60
List Price:  Ft47,721.21
You save:  Ft13,635.60
SEK kr958.55
List Price:  SEK kr1,342.02
You save:  SEK kr383.46
ARS$135,887
List Price:  ARS$190,247.24
You save:  ARS$54,360.24
Bs694.81
List Price:  Bs972.77
You save:  Bs277.95
COP$402,703.49
List Price:  COP$563,801
You save:  COP$161,097.50
₡50,520.40
List Price:  ₡70,730.58
You save:  ₡20,210.18
L2,628.36
List Price:  L3,679.82
You save:  L1,051.45
₲727,203.93
List Price:  ₲1,018,114.59
You save:  ₲290,910.66
$U3,999.43
List Price:  $U5,599.36
You save:  $U1,599.93
zł365.92
List Price:  zł512.30
You save:  zł146.38
Already have an account? Log In

Transcript

Hello, in this jQuery video, I'm going to show you how to get and set the HTML contents of an element. So we've got this little, you know, text part here with that allow you to get the text so far. So if I click that, it gets the text of this div element. But what if, for example, in here I have let's say 500, a p tag, and maybe a bunch of other images, you know, whatever I want to say hello, world. Save that reload, as in the element, section it updated before to console Click, click me. Got a bunch of empty space icon, you got the text if you want to get the HTML itself.

To get it, it's simple. You please text me punched him out. You can obviously assign this to a variable After pack it into the console directly. And if I click it, as you can see, it gets the HDMI as well, the paragraph tag, if you want to modify the HTML, there is also very simple, you just do that. And maybe I'm going to say old time. Say you all save that reload.

And you'll see we get this notice in a context here, I click it, it's been changed. So it has been replaced with this HTML content. So the text function just allows you purely to get the text from it. If there's any other elements, you will not get that formatting, and allows you to set those values. The HTML, however, allows you to get nice The text but the exact HTML led in there, and also set more HTML in here, you could put an image. Actually, that's what I do as an extra task.

Right here, I'm going to apply an image instead of putting some sort of random bold tag. That's it. If you have any questions, feel free to form your 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.