Javatpoint Logo
Javatpoint Logo

Backbone.js view.el()

The Backbone.js View el method defines the element that is used as the view reference. this.el is created from the view's tagName, className, id and attributes properties, if specified. If not, el is an empty div.

Syntax:

Let's take an example.

See this example:

Test it Now

Output:

Save the above code in el.html file and open this file in a new browser. .

BackboneJS el Model
Next TopicBackbone.js $el





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA