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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:03:48+00:00 2026-06-18T01:03:48+00:00

Hello i have a form like this: <tr><td>First Name:</td><td><input data-check=f_n type=text name=first_name /></td> <td

  • 0

Hello i have a form like this:

<tr><td>First Name:</td><td><input data-check="f_n" type="text" name="first_name" /></td>
<td data-msg="f_n"></td></tr>
<tr><td>Last Name:</td><td><input data-check="l_n" type="text" name="last_name" /></td>
<td data-msg="l_n"></td></tr>

now i did a jquery $.post to connect to php to desplay a error in case is needed, so far i have this:

<script type="text/javascript">
 $(document).ready(function(){
    $('[data-check]').click(function(){
        var a = $(this).data('check');
        $.post('website/register/checks.php',, function(data){
            $('[data-msg='+ a +']').html(data);
        });
    });
 });
 </script>

I’m really confuse, on how to send the correct data according to the users input.. and show it in the correct <td></td>

  • 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-18T01:03:49+00:00Added an answer on June 18, 2026 at 1:03 am

    You need to set the post data as the second parameter of $.post

    $(document).ready(function(){
        $('[data-check]').click(function(){
            var a = $(this).data('check'), post_data = {};
            post_data[a] = $(this).val();
            $.post('website/register/checks.php', post_data, function(data){
                $('[data-msg='+ a +']').html(data);
            });
        });
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have something like this HTML structure : <form name=myvalue id=hello> <input type=text name=name
I have form elements like this: <input type='text' id='person_1_name'> <input type='text' id='person_2_name'> <input type='text'
I have a form like this: <select name=category id=cat> <option value=cat1 id=hello>Category1</option> <option value=cat2
I have a form like this: <form id=form_main name=form_main action=/search/ target=iframe001 method=get onSubmit=reset_and_subm();> Enter
I have a simple form and inside there are two input fields text type.
hello i have a form like this <form id=ricerca enctype=application/x-www-form-urlencoded method=post action=><table class=inserisci_modifica> <tr
Hello i have a Zend Form with 2(two) Zend_Validate_Db_RecordExists toghether like this : $ditta_esiste
I have an HTML form like this: form.html: <html> <body> your name is :<br><br>
Hello i have this form filling javascript: function onLine(code,nn) { document.writeform.bericht.value+=code; document.writeform.bericht.focus(); document.writeform.nickname.value+=nn; write1();
Hello I have like this 2 tables class User public int UserId{get;set;} { ....

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.