Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

90
Views
testing backbone.js view anonymous events with jasmine

How can i access click event outside the template scope.

What i have : HTML :

<div class="right_btn"></div>
<div id="template_loader">
    <!-- HTML template goes here which contain form inputs-->
    <input type="text" class="forgot_password_email" value="test" name="forgot_password_email"/>
</div>

View :

  var ForgotPasswordView = Backbone.View.extend({
       template: "templates/forgot-password-view.html",
       initialize: function () {
           console.log('Forgot Password View Initialized');
       },
   
       events:{
          'click .right_btn':function(e){
           alert($(".forgot_password_email").val());
           e.preventDefault();
       }
      }, 
   
  });

Kindly any one help , How can i write testcase to access or triggger above click event outside template

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!