setContainer()


/**
 * @param {String|Object} container CSS3 selector string or HTMLElement
 * @return {Void}
 */
setContainer(container)

Sets the selection container. Selection is unavailable outside this container.

Pass either a CSS3 selector string or a instance of HTMLElement as the first and only argument. Omitting the argument will default the container to the one defined by the container option.


Last updated