Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9099257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:34:08+00:00 2026-06-17T00:34:08+00:00

I am quite new to backbone.js with little experience in javaScript. I was trying

  • 0

I am quite new to backbone.js with little experience in javaScript. I was trying various backbone tutorial found here and there. e.g. from this tutorial I was trying to learn

backbone-baby-steps

In most of the tutorials like above one, they use following code inside Backbone.View.extend to set the model in html template and then render it,

render: function() {
    var tmpl = _.template(this.template);
    this.$el.html(tmpl(this.model.toJSON()));
    return this;
    }

but when I run the code in chrome debugger it says this this.$el is undefined. I searched a lot but didn’t get the solution, then I modified the code by own and it worked,

$(this.el).html(tmpl(this.model.toJSON()));

I’m using cdnjs hosted libraries for backbone, underscore and jquery.

I want to know why every backbone tutorial on internet is using this.$el version but it doesn’t work for me?

And also, when I use the the library(backbone, underscore etc.) files provided by the tutorials instead of hosted one, chrome debugger gives various errors in libraries, why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T00:34:09+00:00Added an answer on June 17, 2026 at 12:34 am

    As per the change log specified in the docs, $el property – a cached jQuery (or Zepto) reference to the view's element was added in version 0.9.0. Try upgrading the version of backbone you’re using to 0.9.0 or above. It should work after that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Quite new to maven here so let me explain first what I am trying
I'm starting a new Backbone app, and I've been quite fond of the javascript
im quite new to php and javascript but still trying to get my webpage
Im quite new at Javascript however I have been trying to create a currency
Im quite new to spring mvc. What I'm trying to achive is separating static
I'm quite new to CSS / HTML, and can't find the cause of this
Am quite new to namespacing etc so hopefully this will be straightforward. I have
I am quite new with jQuery and I don't know how to implement this
Hi I am quite new on MVC and I am trying to create a
Quite new to this mocking thing, I have a couple of questions. Correct me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.