I am using jquery file-upload plugin in backbone js. I have more than one add-files button on a same page. Each button comes form their respective backbone views.
**View**
render: ->
$(@el).html(@template(model: @model.attributes ))
@
**Template**
<form id="fileupload" class="fileupload" action="some_action" method="POST" enctype="multipart/form-data">
<span class="btn btn-xs btn-success fileinput-button">
<i class="glyphicon glyphicon-plus"></i>
<span>Add files...</span>
<input type="file" class="select_file" name="files" multiple>
</span>
<button type="submit" class="btn btn-xs btn-primary start">
<i class="glyphicon glyphicon-upload"></i>
<span>Start upload</span>
</button>
</form>
The Add files button works for any one form but not for the others
What can be the reason and how to solve it?
<span>act like a button? What do your events look like? What is the view'sel? There's not enough information here to reproduce or diagnose your problem.