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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:32:56+00:00 2026-05-24T10:32:56+00:00

Not sure why the code below isn’t working… I’ve tried a number of variations:

  • 0

Not sure why the code below isn’t working… I’ve tried a number of variations:

$('button.mytestbutton').live('click', function() ... 
$('button.mytestbutton').bind('click', function() ...
$('button.mytestbutton').click(function() ...

etc., etc. I’ve also tried inserting return false; before the closing });

In firebug, I don’t get anything at all in the console. Absolutely no indication that it’s been clicked at all… Is there something about “button” that prevents me from doing this?

Here’s the current jquery iteration:

  $('button.mytestbutton').live('click', function() {
    $('#progress').append('Ok, I clicked it.');
    return false;
  });

Here’s the HTML:

<button class="mytestbutton">Test</button>
<div id="progress"></div>

I also don’t see any errors in Firebug on initial page load, and when I check the <script></script> tags, I see the js there… Not sure where to go from here…

  • 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-24T10:32:58+00:00Added an answer on May 24, 2026 at 10:32 am

    I did it here: http://jsfiddle.net/8y7Aw/ and it worked perfectly fine. Could there be other JavaScript or HTML IDs that are preventing the action from going? It even works when I use .click instead of .live.

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

Sidebar

Related Questions

I'm making a simple Image Debugger Visualizer. Code is below. I'm not sure if
I'm not sure why my code is not working.. I have code in vba
I am attempting to figure out why this click tracker isn't working. The code
not sure why my code wont work, im teaching myself javascript i know php
Not sure why my .plist looks like this when viwed as source code, and
Not sure how to do this, here is my code Dim oWeb As New
not sure why I find this so difficult. Here is the html code: <tr>
I am not sure why the following code is not behaving the way I
I am not sure about the exact purpose of the following Rampion's code .
I'm not sure I understand it properly: does a 64 bit OS run/compile code

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.