// Bind the data to part of the DOM var el = document.getElementById('items'); rivets.bind(el, { items: items });
<h1>Binding 'rv-value' to 'rv-html'</h1> <p>This is a simple method of using element attributes to bind the value of a textarea to the innerhtml of a section.</p> <div id="items"> <textarea style="width:80%;" rv-value="items.content"></textarea> <section style="width:80%;" rv-html="items.content"></section> </div>