I have a div:
<div class = "desc"></div>
this div is in a template that a backbone view loads.
Here's the Backbone View: DetailsView = Backbone.View.extend({ events: {.....});
I want when the template loads, to call the following jquery function:
How can I do that?
$('#desc').expander({
slicePoint: 50,
expandText: 'Click Here to Read More',
userCollapseText: 'Hide Text'
});
It is from the expander jquery plugin.