In the representations of the Backbone model, it seems to $(this.el).parent()not work. What is the best way to select a parent from a view?
$(this.el).parent()
I install el using tagName: "li"for submission.
tagName: "li"
By default, Backbone sets your view to empty div, and you cannot access its parent until it is placed in the DOM through your rendering function.
div
$(this.el).parent(), Backbone div . this.el.parent(), el jQuery.
this.el.parent()
el
this.el? jquery, :
this.el = $('#content');
. , :