7.1

Table Of Contents
Adding information to the DOM
The following snippet adds an HTML snippet to the DOM. An comment line is added to the web form of the User Input fields
page.
<script type="text/javascript">
$(document).ready( function(){
var formline = "<div class=\"formLine\">" +
"<span class=\"formLabel\" style=\"width: 100%\">" +
"<i>All fields signed with a <span class=\"asterisk\">*" +
"</span> are mandatory</i></span></div>";
$("body.preview_userinput #content div.content").append(formline );
});
</script>
©2010 Objectif Lune Inc - 253 -