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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:30:19+00:00 2026-06-05T04:30:19+00:00

I seem to have problem with jQuery bind() and unbind() functions. They seem to

  • 0

I seem to have problem with jQuery bind() and unbind() functions. They seem to not get executed at all. Here’s the code I have so far:

$(function() {
    var init = function() {
        $.get('test.php', function(j) {
            if(j.r && j.r == 'error') {
                console.log("1");
                $('#far').bind('click', function() {
                    console.log("2"); return false;
                });
            } else {
                //getData();
            }
        })
    }();

    var getData = function() {
        $('#far').unbind('click', false);
    };

    $('#far').click(function() { ... });
});

Console only shows me 1 and no errors. I have no idea what I’m doing wrong since there are no errors and jQuery docs and StackOverflow has given me the same answer. I’m using jQuery 1.4.4

What am I doing wrong?

  • 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-05T04:30:21+00:00Added an answer on June 5, 2026 at 4:30 am

    As I see you’re binding event before it’s created, so use live instead.

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

Sidebar

Related Questions

Has anyone else encountered the problem that jquery-1.6.2.min.js does not at all seem to
I seem to have a problem with my meta box saving, not totally sure
I'm having a bit of a jQuery problem. Basically I have some functions that
I have a jQuery problem that I can't seem to work out on my
Can't get my head around this Jquery problem I have.. I've been looking around
I have a problem with JQuery Toggle. I have the following code: var $_
I seem to have a problem with some jQuery, and I can't figure out
I seem to have a problem with getting MVC to fill in my custom
I seem to have a problem understanding how to conditionally test a boolean value
I seem to have a major problem. I opened up Xcode and my main

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.