Link to home
Start Free TrialLog in
Avatar of brgdotnet
brgdotnetFlag for United States of America

asked on

Using Java Script or JQuery how can I insert more text into my div/pre tag block?

In my Aspx page I have some html markup as shown below. I have some java script code which will display a popup with the words "-Error Summary". This text as you can see is hard coded. So is their a way using JQuery or java script to add more text within my <pre> tags below?
Basically what I am trying to do, is to get specific errors. I then want to inject them into the pre tags below at runtime when a button is pressed. Is this possible?

<div id="tip1_down" style="display:none;">
<pre class="tip">
- Error Summary


</pre>
</div>
ASKER CERTIFIED SOLUTION
Avatar of Insoftservice inso
Insoftservice inso
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Luis Pérez
Luis Pérez
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
My bad its html() and not htm() typo error
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brgdotnet

ASKER

Thanks guys. I will try the suggestions and get back with you this evening.