How to replace the inner HTML of a div using jQuery

To replace the inner HTML of a div using jQuery you can use the following snippet.

$("#divId").html("New Inner HTML");

Please Share us:
Please rate this snippet

8 thoughts on “How to replace the inner HTML of a div using jQuery

Leave a Reply