button('reset')
<p>The following Single Page Application (created by someone else) which authenticates users,  <a href="http://backbonedevise.herokuapp.com" rel="nofollow">http://backbonedevise.herokuapp.com</a> was created using Backbonejs and a plugin called Marionette. I am trying to rewrite it without Marionnette. The success and error callbacks have this line of code  </p>

<pre><code>el.find('input.btn-primary').button('reset');
</code></pre>

<p>Prior to the login the html looks like this</p>

<pre><code> &lt;input type="submit" value="Login" class="btn btn-primary"&gt;
</code></pre>

<p>In other words, it doesn't have a type reset.  I'm assuming the line <code>el.find('input.btn-primary').button('reset');</code> somehow resets the button. I tried to rewrite it this way</p>

<pre><code>$('input.btn-primary').button('reset');
</code></pre>

<p>but I received an error, </p>

<pre><code>Object has no method button. 
</code></pre>

<p>Can you explain what I might be doing wrong and how i might fix it. </p>

<p>The success callback.</p>

<pre><code>this.model.save(this.model.attributes, {
      success: function(userSession, response) {
        el.find('form').prepend(BD.Helpers.Notifications.success("Instructions for resetting your password have been sent. Please check your email for further instructions."));
        el.find('input.btn-primary').button('reset');
      },
</code></pre>
