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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:14:14+00:00 2026-06-15T22:14:14+00:00

I have an ajax request to load a table with filtered information. For example:

  • 0

I have an ajax request to load a table with filtered information.

For example:
Select an employee, hit “GO” to only see results for that employee.

The data filters properly.
The PHP shows in the file the ajax loads:

echo "<td><a href=\"creditcard.php?type=Edit&cc_id=".$cc_id."\" />Edit</a></td>";

After it loads the data, the DOM shows:

<td><a href="creditcard.php?type=Edit&cc_id=8"></a>Edit</td>

My AJAX call looks like:

$('#go').live('click', function(e){
        e.preventDefault();
        $(this).hide();
        $(".Results").hide();
        $(".loading").html("<p>Loading...</p>");
        var employee = $('.employee').val();
        var cardtype = $('.cardtype').val();
        var startdate = $('.startdate').val();
        var enddate = $('.enddate').val();
        dataString = "ajax_employee="+employee+"&ajax_cardtype="+cardtype+"&ajax_startdate="+startdate+"&ajax_enddate="+enddate;
        $.ajax({
            type: "POST",
            url: "includes/creditcardsearch.php",
            data: dataString,
            success: function(result){
                $('.Results').html(result);
            },
            complete: function() {
                $(".loading").html('');
                $('.Results').fadeIn('slow');
                $("#go").show();
            }
        });
    });

Does anybody have any idea why it’s doing this?

  • 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-15T22:14:15+00:00Added an answer on June 15, 2026 at 10:14 pm

    You have a self closing anchor tag

    .$cc_id."\" />Edit</a>  
                ^----    Need to remove this Forward Slash
    

    Change it to

    .$cc_id."\" >Edit</a>
    

    Because of the Extra closing tag , it interprets as the end of the element and pushing the text outside of the Anchor Tag

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

Sidebar

Related Questions

I have a table that is populated with results of an AJAX onchange request.
I'm trying to use an AJAX request to load some information into a table
I have ajax request that do 3 missions: Save Model (DB) Send Email Give
I have an Ajax request that can return more than one valid value, so
I have a AJAX request that will return a string that contains some HTML
I have a Ajax request that fires on clicking a href that is part
I have a jQuery AJAX post request that is unexpectedly triggering the error callback
I have a link that calls the ajax to load content, and after the
I have a website that uses Jquery and Python. I have an Ajax Request
I have implement a Comet solution with Ext.Ajax.request() so that when a timeout occurs

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.