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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:20:40+00:00 2026-06-17T06:20:40+00:00

I have created a HTML table with clickable cells (td) within that table (Similar

  • 0

I have created a HTML table with clickable cells (td) within that table (Similar to Excel)

I have an input field (read only)

<input type="text" readonly=""> 

I want to display the coordinates of where the user is clicked when they click on the table in this input field.

For example if a user is clicked on a cell which corresponds on X axis to Name 2 and Y axis to 16, then I want the input field to say “Name 2 | 16”

It is a reference display so the users can see what they are clicked on in a cluttered grid. Excel does this when u click on any cell within Excel.

I have created a jsfiddle here

http://jsfiddle.net/37PGT/

Looking for some assistance.

  • 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-17T06:20:42+00:00Added an answer on June 17, 2026 at 6:20 am

    Add an id of cellRef to the input, then in your mouseup handler add this code:

    var row = $(this).closest('tr').index() + 1;
    var cell = $(this).index();
    $('#cellRef').val(row + ' | ' + cell);
    

    Updated fiddle

    To get the label of the row (so you can format the input to be Name 1 | 1, use this line to set row:

    var row = $(this).closest('tr').find('td:first').text();
    
    • 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 one field, I have a priority of that
I have a dynamically created HTML string (a table rows). That rows count in
I have a table that looks like this: +-------+------------------+------+-----+---------+----------------+ | Field | Type |
I have created a html page in php and upon submission i validates that
For a special requirements, we have created our own HTML table it works like
I have a HTML table that displays rows of records and has a column
I have a mysql table. I have created a html table and filled it
I have created a table in Html and I would like to make a
I have a HTML page that I have created that essentially consists of: <div>
I have an HTML table <table id=sometable> <tr> <td> <table class=wTable> <tr> <td> <input

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.