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.20
List Price:  €119.28
You save:  €34.08
£73.82
List Price:  £103.35
You save:  £29.53
CA$135.81
List Price:  CA$190.13
You save:  CA$54.32
A$151.80
List Price:  A$212.52
You save:  A$60.72
S$127.75
List Price:  S$178.85
You save:  S$51.10
HK$784.91
List Price:  HK$1,098.91
You save:  HK$313.99
CHF 79.24
List Price:  CHF 110.95
You save:  CHF 31.70
NOK kr1,006.20
List Price:  NOK kr1,408.73
You save:  NOK kr402.52
DKK kr635.95
List Price:  DKK kr890.35
You save:  DKK kr254.40
NZ$165.59
List Price:  NZ$231.83
You save:  NZ$66.24
د.إ367.26
List Price:  د.إ514.18
You save:  د.إ146.92
৳12,126.72
List Price:  ৳16,977.90
You save:  ৳4,851.17
₹8,639.92
List Price:  ₹12,096.24
You save:  ₹3,456.31
RM422.70
List Price:  RM591.80
You save:  RM169.10
₦152,601.73
List Price:  ₦213,648.53
You save:  ₦61,046.80
₨28,386.51
List Price:  ₨39,742.25
You save:  ₨11,355.74
฿3,215.37
List Price:  ฿4,501.65
You save:  ฿1,286.28
₺4,045.01
List Price:  ₺5,663.18
You save:  ₺1,618.16
B$556.66
List Price:  B$779.35
You save:  B$222.68
R1,751.49
List Price:  R2,452.16
You save:  R700.67
Лв166.63
List Price:  Лв233.29
You save:  Лв66.66
₩137,800.04
List Price:  ₩192,925.56
You save:  ₩55,125.52
₪332.81
List Price:  ₪465.96
You save:  ₪133.14
₱5,684.14
List Price:  ₱7,958.03
You save:  ₱2,273.88
¥14,649.08
List Price:  ¥20,509.30
You save:  ¥5,860.22
MX$1,864.69
List Price:  MX$2,610.64
You save:  MX$745.95
QR363.15
List Price:  QR508.43
You save:  QR145.27
P1,388.55
List Price:  P1,944.03
You save:  P555.47
KSh12,913.70
List Price:  KSh18,079.70
You save:  KSh5,166
E£4,908.50
List Price:  E£6,872.10
You save:  E£1,963.60
ብር13,818.79
List Price:  ብር19,346.86
You save:  ብር5,528.07
Kz91,186.39
List Price:  Kz127,664.59
You save:  Kz36,478.20
CLP$95,090.49
List Price:  CLP$133,130.49
You save:  CLP$38,040
CN¥716.13
List Price:  CN¥1,002.62
You save:  CN¥286.48
RD$6,012.38
List Price:  RD$8,417.57
You save:  RD$2,405.19
DA12,965.63
List Price:  DA18,152.41
You save:  DA5,186.77
FJ$223.89
List Price:  FJ$313.46
You save:  FJ$89.56
Q764.44
List Price:  Q1,070.25
You save:  Q305.80
GY$20,838.53
List Price:  GY$29,174.78
You save:  GY$8,336.24
ISK kr12,132.78
List Price:  ISK kr16,986.38
You save:  ISK kr4,853.60
DH897.37
List Price:  DH1,256.35
You save:  DH358.98
L1,690.74
List Price:  L2,367.10
You save:  L676.36
ден5,239.85
List Price:  ден7,336
You save:  ден2,096.15
MOP$805.37
List Price:  MOP$1,127.55
You save:  MOP$322.18
N$1,753.48
List Price:  N$2,454.94
You save:  N$701.46
C$3,665.40
List Price:  C$5,131.71
You save:  C$1,466.30
रु13,762.83
List Price:  रु19,268.52
You save:  रु5,505.68
S/354.66
List Price:  S/496.53
You save:  S/141.87
K418.72
List Price:  K586.22
You save:  K167.50
SAR375.12
List Price:  SAR525.19
You save:  SAR150.06
ZK2,303.55
List Price:  ZK3,225.07
You save:  ZK921.51
L431.90
List Price:  L604.68
You save:  L172.78
Kč2,097.59
List Price:  Kč2,936.71
You save:  Kč839.12
Ft34,009.72
List Price:  Ft47,614.97
You save:  Ft13,605.25
SEK kr949.15
List Price:  SEK kr1,328.85
You save:  SEK kr379.69
ARS$125,532.63
List Price:  ARS$175,750.71
You save:  ARS$50,218.07
Bs688.26
List Price:  Bs963.59
You save:  Bs275.33
COP$403,197.96
List Price:  COP$564,493.28
You save:  COP$161,295.31
₡50,240.80
List Price:  ₡70,339.13
You save:  ₡20,098.33
L2,607.06
List Price:  L3,649.99
You save:  L1,042.92
₲757,521.05
List Price:  ₲1,060,559.78
You save:  ₲303,038.72
$U4,019.51
List Price:  $U5,627.48
You save:  $U1,607.96
zł362.35
List Price:  zł507.31
You save:  zł144.95
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.