brgdotnet
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>
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
My bad its html() and not htm() typo error
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks guys. I will try the suggestions and get back with you this evening.