99
Backbone.js view.attributes()
The Backbone.js attributes method specifies a hash of attributes that contains HTML DOM element attributes on the view’s el (id, class, data-properties, etc.), or a function that returns such a hash.
Syntax:
Let’s take an example.
See this example: