JQuery HTML Manipulation

JQuery uses powerful methods or functions for changing and manipulating HTML elements and attributes. The HTML manipulations are 1)  Changing the HTML content The html() method helps to change the contents or innerHTML of selected elements. Syntax: – $(selector).html(content) Eg: – <!DOCTYPE html> <html> <head> <script type=”text/javascript” src=”jquery.js”></script> <script type=”text/javascript”> $(document).ready(function() { $(“button”).click(function() { $(“p”).html(“Hai”); […]