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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:16:07+00:00 2026-06-03T20:16:07+00:00

I do some debugging and I found this statement: $(this)[widget.widgetName](widget.attributes); where widget.widgetName = chart

  • 0

I do some debugging and I found this statement:

$(this)[widget.widgetName](widget.attributes);

where widget.widgetName = chart

What is the meaning of this statement in jquery?

In the stack I saw that jquery_ui calls _createwidget of jquery-ui

Why does createwidget get called ?

Regards,
Yossi

  • 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-03T20:16:09+00:00Added an answer on June 3, 2026 at 8:16 pm

    $(this)[widget.widgetName] uses square bracket notation to refer to the property whose value is the value of widget.widgetName. For comparisons between square backet and “dot notation” see the MDC article.

    As you said widget.widgetName is chart, it’s refering to:

    $(this).chart
    

    and then the (widget.attributes); is simply invoking the function and passing widget.attributes as the first and only parameter:

    $(this).chart(widget.attributes);
    

    As for “Why does createwidget get called?” The chart() function must call it, either implicitly (through another function) or explicitly.

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

Sidebar

Related Questions

I was debugging a stored procedure the other day and found some logic something
I have some debugging code that if executed while running with GBD attached should
I'm debugging some code for a client and found the following syntax: switch ($i)
Whilst debugging a website I found this tag below the body of the page
I don't understand this at all. Here is some Javascript code that works in
After some debugging,I found com.google.gwt.event.shared.UmbrellaException:One or more exceptions caught, see full set in UmbrellaException#getCauses'
Debugging some finance-related SQL code found a strange issue with numeric(24,8) mathematics precision. Running
I want to write some debugging output to the log to review it with
I'm debugging some odd ARM exceptions in an embedded system using the IAR workbench
i'm debugging some hidden http posts on my website. can you refer a free

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.