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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:10:43+00:00 2026-05-22T01:10:43+00:00

I enqueued the script through WordPress and checked the source, the JS file is

  • 0

I enqueued the script through WordPress and checked the source, the JS file is only included once. Using Firebug, I see that the Post is only sent once. Using Console.log(response), it shows only the single result.

It’s outputting my results twice in the HTML though! What am I doing wrong?

$('#cpnsrch').bind('keyup',function(){
    var srch_data = $('#cpnsrch').val();
    if(srch_data.length > 2){
        $.post(bctcdb.ajaxurl,
            {
                'action' : 'search-coupon',
                'data' : srch_data
            }, function(resp){
                if( resp != $('#list-coupons tbody').html() ){
                    $('#list-coupons tbody').html(resp);
                }
                return true;
            }, 'text');  
    }
});

I’m at a loss and can’t think of any other causes.

Here’s the site if that helps any.

Thanks!

-Daniel

edit: Oops, sorry for those that went to the link. I had it set so only logged in users could see the page. It should work for anybody now.

  • 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-22T01:10:44+00:00Added an answer on May 22, 2026 at 1:10 am

    The issue is with your <tbody> closing tag – you have another opening instead of </tbody>

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

Sidebar

Related Questions

Trying to get Galleria script working in WordPress? I am have enqueued the script
I'm using wordpress with Smooth Gallery for showing featured news slider, and i want
I'm developing sites using Wordpress and I want to use the lates version of
I've been using this code as a queue that blocks on Dequeue() until an
How do you make a Wordpress header image clickable so that it navigates to
I'm having problems trying to call a Javascript function from an enqueued javascript file
I'm new to wordpress development and created a widget that works fine, however I'm
(Using collectiveidea's delayed_job) I have a job that scrapes for a keyword, but I
G'day everyone, I have a system (the source) that needs to notify another system
I'm trying to call multiple JQuery scripts using (a wordpress feature) wp_enqueue_script. The call

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.