In this section, you can find basic examples of how to work with the containers using JavaScript.

If you are not familiar with the JavaScript framework, get started with the JavaScript basics.

Note

The container is only accessible once the form is rendered, so all calls to the containers must be inside fd.rendered event:

fd.rendered(function(){
    //hide the container
    $(fd.container('Container1').$el).hide();
    //show the container
    $(fd.container('Container1').$el).show();
});