7.0

Table Of Contents
7.4 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>
Objectif Lune Inc. © 2010 50