renderTo

Mixed

Dom id, where to render form.

Example: String


<div id="container"></div>
...

new FancyForm({    
  renderTo: 'container',
  width: 690,
  height: 350,
  ...

Example: Dom


<div id="container"></div>
...

new FancyForm({
  renderTo: document.querySelector('#container'),
  width: 690,
  height: 350,
  ...

Example: Argument

It is possible do not define renderTo property and provide dom element as first argument.


<div id="container"></div>
...

new FancyForm(document.querySelector('#container'), {
  width: 690,
  height: 350,
  ...

Default


document.body