1 00:00:00,450 --> 00:00:06,400 We can use the text each GMO involved methods to set content instead of retrieving it. 2 00:00:06,420 --> 00:00:13,280 In this example we have three buttons each button resets the content of a specified each GMO element. 3 00:00:14,870 --> 00:00:15,350 Reset. 4 00:00:15,350 --> 00:00:24,750 Text replaces the first line of text with different text content reset each GMO resets line 2 with this 5 00:00:24,750 --> 00:00:30,400 time with each GMO bull tags embedded into the text reset. 6 00:00:30,400 --> 00:00:36,570 Value replaces the data in the name input field with a different name. 7 00:00:36,600 --> 00:00:39,720 Let's take a look at the script to see how we can reset content 8 00:00:44,150 --> 00:00:45,730 in our HMO code. 9 00:00:45,740 --> 00:00:49,100 We can see that our body tag contains three buttons 10 00:00:55,490 --> 00:01:02,920 each button has a unique I.D. button one button two and three. 11 00:01:02,950 --> 00:01:10,930 We also have our input field that contains the I.D. name and default value. 12 00:01:10,930 --> 00:01:14,290 John Smith. 13 00:01:14,680 --> 00:01:19,870 Next we have our two lines of text each again with a unique I.D.. 14 00:01:19,870 --> 00:01:21,610 Text 1 And text 2 15 00:01:26,220 --> 00:01:27,430 now in our script tag. 16 00:01:27,450 --> 00:01:35,750 We have different events and actions set up to reset the content of our HDMI elements. 17 00:01:35,840 --> 00:01:44,300 First we start with a click event on button 1 when button 1 is click the paragraph with I.D. text 1 18 00:01:44,830 --> 00:01:49,620 will have the text reset to new text line 19 00:01:52,440 --> 00:02:02,160 button 2 also has a click event one button 2 is clicked the text in paragraph with I.D. text 2 changes 20 00:02:02,250 --> 00:02:07,500 to the text bold text line the styling of which is bold 21 00:02:13,460 --> 00:02:22,670 button 3s click event triggers of value change in the input field with Ida name the new value will be 22 00:02:22,670 --> 00:02:23,540 jane willis 23 00:02:29,390 --> 00:02:39,890 so once again if we click button 1 the text is reset button to the Texas reset again but this time it's 24 00:02:39,890 --> 00:02:40,290 bold. 25 00:02:42,010 --> 00:02:45,760 And Button 3 resets the name John Smith to Jane wills.