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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:52:51+00:00 2026-05-27T17:52:51+00:00

I have a table (created by php) whose last colum has input boxes in

  • 0

I have a table (created by php) whose last colum has input boxes in each of it cells:
php:

echo "<table id='booklist'><tr>
                         <th>Edit</th>
                         <th class='coursename'><a href='#' class='Course_Name'>Course Name</a></th>
                         <th class='startdate'><a href='#' class='Start_Date'>Start Date</a></th>
                         <th class='booktitle'><a href='#' class='Book_Title'>Book Title</></th>
                         <th class='bookauthor'><a href='#' class='Book_Author'>Book Author</a></th>
                         <th class='bookisbn'><a href='#' class='Book_Isbn'>Book ISBN</a></th>
                     </tr>";

        while($row = mysql_fetch_array($result))
        { 
            echo    "<tr>
                        <td><input type='checkbox'></input></td>
                        <td class='coursename'>" . $row['Course Name'] . "</td>
                        <td class='startdate'>" . $row['Start Date'] . "</td>
                        <td class='booktitle'>" . $row['Book Title']. "</td>
                        <td class='author'>" . $row['Book Author']. "</td>
                        <td class='isbn'><input class='ISBN_number' type='text' value='' size='13' maxlength='13'></input></td> 
                  </tr>";                   
        }               
echo "</table>";

I am trying to make a jquery function that does an ajax call to validate the content and if valid, to put a picture of a checkmark. Here is the jquery:

//validates a manually inputed ISBN number   
$(document).ready(function() {
    $(".ISBN_number").change(function(){
        var isbnNum = $(this).val();
        console.log("isbnNum = " . isbnNum);
        $.get("validate_isbn.php", {isbn: isbnNum},
            function(answer) 
            {                   
                console.log(answer);
                if (answer == true)
                {
                    $(this).after("<img src='pics/green_checkmark.png' class='checkmark'>");
                }
                else 
                {

                }
            });

    });

The ajax calls validate_isbn.php and returns a true or false (and I know that file works, I have used it in other situations). But when I put a value in the input box nothing happens. None of my console.logs print out, all I get is the following message: “event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.” I am not sure what this means and what is wrong with my code.

  • 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-27T17:52:52+00:00Added an answer on May 27, 2026 at 5:52 pm

    Your code seems to suffer from a few minor errors. Try this:

    http://jsfiddle.net/mblase75/YfDPb/

    $(document).ready(function() {
        $(".ISBN_number").change(function() {
            $this = $(this); // store the current 'this'
            var isbnNum = $this.val();
            console.log("isbnNum = "+isbnNum); // + not . to concatenate strings in JS
            $.get("validate_isbn.php", { // make sure this is the correct relative path
                isbn: isbnNum
            }, function(answer) {
                console.log($this);
                if (answer==='true') { // answer will be a string of text, not a boolean
                    $this.after("<img src='pics/green_checkmark.png' class='checkmark'>");
                } else {
                    $this.after("nope"); // to verify that something's happening
                }
            });// end callback
        });//end change
    });//end ready
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a table in PHP but the cells size is not fixed
I have a table which has textboxes in its cells. All these textboxes are
I have a table created with PHP from an Sql Database that successfully displays
Apologies for the vague question. Here it is: I have a table object created
I have a table that is created in a DataList in ASP.Net. This table
I have the following database table created thus: CREATE TABLE AUCTIONS ( ARTICLE_NO VARCHAR(20),
I have a table where I created an INSTEAD OF trigger to enforce some
I have a table that's created like this: CREATE TABLE bin_test (id INTEGER PRIMARY
I have a table that I created within xcode so there is no nib
I have created a table in my application, I want to select (change background

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.