How to Replace innerHTML of a Div using jQuery
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Use the jQuery
html()
MethodYou can simply use the jQuery
html()
method to replace innerHTML of a div or any other element.The jQuery code in the following example will replace the innerHTML of a DIV element having id
need an explanation for this answer? contact us directly to get an explanation for this answerpageTitle
with an HTML heading on click of the button. Let's try it out: