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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:40:03+00:00 2026-05-27T07:40:03+00:00

hi im creating a plugin with chaining the problem is I want to select

  • 0

hi im creating a plugin with chaining the problem is I want to select elements outside of the THIS element e.g

return $this.each(function() {
    $('body $left .filter-wrapper input[type=checkbox]', document).change(function() {
        alert('changed');// I want to break out side the scope how do i do that
        and select element that aren't in $('mygrid').Grid()
        // ive tried $('body $left .filter-wrapper input[type=checkbox]') 
        // that doesn't work either
    }).find(this).filter(....).click(function() {
        // this refers to mygrid which is what i want but the ubove code doen't work 
    }).find(....).click(function(){
        // do more stuff here
    }).bind('....')
});

$(‘mygrid’).Grid()

  • 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-05-27T07:40:04+00:00Added an answer on May 27, 2026 at 7:40 am

    Please check the formatting of your question, it’s very hard to read.

    If you want to select elements outside $(this), you can consider selecting them like you would normally do:

    $("div.clickable").click(function() {
        $(this).hide();
        $("div.outsidethis").doSomething();
    });
    

    Alternatively, you can use $.proxy() to pass the current context to your method:

    $("div.clickable").click($.proxy(function(){
        // this is now NOT div.clickable but whatever this was before
    }, this));
    

    http://api.jquery.com/jQuery.proxy/

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

Sidebar

Related Questions

I'm creating jQuery plugin: $.fn.myGrid = function () { return ???; } I want
I came across this problem when I was creating a plugin. I cannot call(access
Ok this is a little complex. I am creating a plugin, and want to
I'm reading some tutorials now about jQuery.. function creating,plugin creation etc. but these tutorials
I'm interested in creating a plugin that does this simple task: Steps 1. User
I am creating a plugin and it cannot access $(this). A simple overview of
I have a few select elements that are grouped by a span. I'm creating
When creating a jQuery plugin, what should be returned in a $.fn function? Is
I am creating a coverflow plugin but I have a slight problem when it
I creating a notepad++ plugin and I want to add reference to c# dll

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.