Question and answer is powered by AnsPress.io
I am using simple HTML page and work with jQuery. I want to display a message in an HTML tag when clicking a button then my message will display.
Display a success message or error message or validation message in a <p> tag use this code $(‘#p_tag_id’).text(‘Enter your message here’). For example:
<p id="ErrorMsg" style="color:#fff"></p> $('#ErrorMsg').text('Please enter Name!');