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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:49:08+00:00 2026-06-13T08:49:08+00:00

Do you know why this method click doesn’t show alert? Because I’m not able

  • 0

Do you know why this method click doesn’t show alert? Because I’m not able to catch this event.

<!DOCTYPE html>
<html>
<head>
<script src="jquery.js"></script>
<script>
jQuery(function () {
    jQuery(".jtable-command-button.jtable-edit-command-button").click(function () {
        alert("asdas");
    });
});

</script>
</head>
<body>

<h1>My First JavaScript</h1>
<p id="demo">This is a paragraph.</p>

<button class="jtable-command-button jtable-edit-command-button" title="Edytuj pozycję">

</body>
</html> 

I give you for all of you points for help [closed] thanks

  • 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-13T08:49:09+00:00Added an answer on June 13, 2026 at 8:49 am
    1. You are trying to use a $ function (probably from jQuery) without defining it (e.g. by loading jQuery)
    2. You are trying to find the event handler before the element you are binding to has been created
    3. You are using an id selector but the element doesn’t have an id (it does have a class) (Note: after the first edit of the question, this is no longer the case)
    4. You are using a descendant combinator and a type selector, but the type should be a class and the element you are targeting belongs to both classes. It doesn’t have an ancestor element which is a member of either of the classes. (Note: The HTML class attribute takes a space separated list of classes)
    5. The end tag and label for the button are missing

    A fixed version of the JS part would be:

    <script src="jquery.js"></script> <!-- Set this path correctly -->
    <script>
    jQuery(function () {
        jQuery(".jtable-command-button.jtable-edit-command-button").click(function () {
            alert("asdas");
        });
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this represents the object invoking the method and static methods are not
I'm getting a Object doesn't support this property or method error, does anyone know
Do you know any method to optimize this HTML Code to IE6 or 7
I would like to know if this method of setting up routing in Zend
I'm stuck at this method and I don't know why! Can anyone point me
I'm just to figure out what does this method do, I know there must
I know there is a method like this : setTimeout(functionA();,1250); That can delay my
This class hangs at Future.get() method after executing ExecutorService.shutdownNow() called. I don't know what
i want to redefine an event, i mean, i have this: boton.Click += infoApp;
I know this particular query works, as I tested it with unprepared, procedural methods.

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.