Changing the Content of an HTML Element
Similar to how jQuery, allows us to read and write to a form element, jQuery can allow us to change the contents of an HTML element. However, instead of using the val() method, jQuery provides two different methods, depending upon what you are wanting/needing to do. As with the val() method, it is most common…