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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:09:24+00:00 2026-05-28T11:09:24+00:00

Here is my JQuery Code: $(function () { $(‘[id*=clickbtn]’).click(function () { var url =

  • 0

Here is my JQuery Code:

$(function () {
$('[id*=clickbtn]').click(function () {
    var url = "WindowPages/EditorControl.aspx?controlName=" + this.name;
            oWnd.setUrl(url);
            oWnd.show();

        });

});

Now the problem is, i have 4 to 5 buttons whose id contains ‘clickbtn’ when i click the any one of them for first time it works well. But it does not works for second click, any help why is this happening?

[EDIT]:

I tried putting the JQuery on page and it worked.. But wnt to know why it does not work on when i put the same on .JS file?

  • 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-28T11:09:25+00:00Added an answer on May 28, 2026 at 11:09 am

    Yes, the result of your event handlers depends very much on the content of your event handlers. If you’d like to share with us the rest of the code we might be able to help. For now the answer is: working as intended

    jsFiddle

    If your clicks only work on the first try, then I can assure you that it is only the missing code which is to blame. Provide the contents of oWnd.setUrl and oWnd.show and we might be able to help.

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

Sidebar

Related Questions

Here is jQuery code: <script> $(document).ready(function() { $('.class112').click(function() { var msg = $(this).attr('id'); $('#'+msg).dialog({
Here my Jquery code: <script> $('.smenu li').hover(function() { var lid = $(this).find('li').attr('id'); closeAll(); //show
This my jquery function, function getRecordspage(curPage, pagSize) { // code here $(.pager).pagination(strarr[1], { callback:
Just curious... I begin my jquery code with this: jQuery(document).ready(function($) { /*code here*/ })
I have the following jquery code: $(function() { $('.sliding-buttons').click(slidingContent); }); function slidingContent(e) { var
Here is my jQuery code: function onSaveClicked() { var message = { MessageID: $(#MessageID).val()
Here is my jQuery code: $.get('/Home/GetList', function(data) { debugger; $('#myMultiSelect').val(data); }); Here is my
I have this html code that i want to edit with jQuery. Here is
I have jQUery code: setInterval(function() { var grayarrow = jQuery(ul#dropdowngray).parent(); var greenarrow = jQuery(ul#dropdown).parent();
Heys! Ill cut right to the subject, here's the jquery code: jQuery(function() { jQuery('.entry-content

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.