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

  • SEARCH
  • Home
  • 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 8893105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:09:50+00:00 2026-06-14T23:09:50+00:00

So this is most likely a very simple problem which i just can’t figure

  • 0

So this is most likely a very simple problem which i just can’t figure out.

Basically i want to select multiple elements and create new instance for each object.

Then later on i want to be able call public methods from outside plugin.

Now the problem is that when i call those methods i can’t seem to access each instance settings, well i can, but it looks like those settings are overridden when looping trough elements.

I think i won’t post code here since it’s quite long, but i have made this jsfiddle, and i have explained what doesn’t work in the comments.

Just to be clear, plugin is called two times, then i call public method called test which should set this text container to .result div but it sets container2 which is incorrect.

  • 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-14T23:09:51+00:00Added an answer on June 14, 2026 at 11:09 pm
    1. You need to attach data to dom element inside init

      $.data(obj, “settings”, settings);

    2. You better call method in context of dom element

      methods[method].apply(this, options);

    http://jsfiddle.net/5EGEY/1/

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

Sidebar

Related Questions

My question most likely requires a very simple answer, which, nevertheless, I was not
This is a very simple question, and most likely requires a very simple answer.
I know this is most-likely a simple question but when you restore a database
This is not as simple as it seems. Most of you are likely thinking
I am new to Ember and most likely I am missing something very simple.
this is most likely very easy but i'm struggling $(window).bind(load resize, function(){ var wH
This is most likely not an easy one but here is the situation: I
I'm pulling in xml using the cocoa NSXmlParser. Since this process most likely won't
So at this moment (but most likely not for long) Reddit, Meetup, Fark, LinkedIn,
This question most closely relates to the asp.net mvc3 framework. It started out as

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.