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 7818547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:36:39+00:00 2026-06-02T06:36:39+00:00

I am trying to use a jQuery extension I came across ( handsontable ).

  • 0

I am trying to use a jQuery extension I came across (handsontable). I am having no problem creating the table

var spreadsheet = $("#dataTable").handsontable({
            rows: 3,
            cols: 15,
            minSpareRows: 2
});

However after I create the table I want to call various helper functions I see declared in the javascript for the Handsontable object. The problem is the extension seems to return this.each(function() { ... }); and I don’t understand how I can access the underlaying Handsontable object from this. The js for the extension can be found here and I put a small demo together on the following link

http://jsfiddle.net/7JTG2/7/

as you can see I would like get the data of one of the cells when I click a button.

  • 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-02T06:36:42+00:00Added an answer on June 2, 2026 at 6:36 am

    The relevant code is in the end:

    $.fn.handsontable = function (action, options) {
        if (typeof action !== 'string') { //init
            options = action;
            return this.each(function () {
                if($(this).data("handsontable")) {
                    instance = $(this).data("handsontable");
                    ...
                } else {
                       ...
                    instance = new Handsontable($(this), currentSettings);
                    $(this).data("handsontable", instance);
                }
            });
        }
    }
    

    That means, the code sets the Handsontable instances as a data attribute to the elements (and returns the selected set to be chainable). Having one element, you can easily extract it with instance = $el.data("handsontable"). If you have a set of elements, you will need to loop over it – e.g. with each().

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

Sidebar

Related Questions

I am running into a problem trying to use AJAX and jQuery with ASP.NET
I am trying to use jQuery to pick an item in a table row
I'm trying to use jQuery inside a Firefox extension, and actually want to use
I'm trying to use jQuery.scrollTo plugin with accordion (where one block expands after clicking
I'm trying to use jQuery UI tabs much like a Master Page in ASP.Net.
I'm trying to use JQuery to select all of the TD 's in a
I am trying to use jquery autocomplete plugin, I want it to suggest ItemCodes
I am trying to use Jquery to iterate through an array of textboxes where
I'm trying to use jquery to switch between three images once you click on
I am trying to use jquery's parents/siblings to find particular input elements but I

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.