Backbone.JS View SetElement()

The Backbone.JS View SetElement() method is used to specify the existing DOM element to a different DOM element.

Syntax:

View.SetElement (element)   

Parameters:
element: This parameter is used to specify the element to be changed.

Example:

  

  
Example  
  
  
  
  
  
Enter any text:

Output:



Example




Enter any text: