Hi all,
I would like to write a java script which:
- When the page loads takes the content of a and
- Places that content on a popup page.
any ideas for the script?
I know how to navigate to the element but have no idea how to copy the content.
The content of the div will be something like this
<div id="validationDiv">
<div id="ctl00_Main_OTClaim1_valControls" class="errorpanel" style="color:Red;">
<ul><li>Approver Name - required field.</li><li>Week Commencing Date - required field.</li><li>Summary of Hours Worked must be completed.</li><li>At least one item must be claimed to proceed.</li></ul>
</div>
</div>
where valadation div contains what i want to copy to the new window
cheers