Solved

html cursor up and down, side to side like excel

Posted on 2013-05-29
4
287 Views
Last Modified: 2013-05-30
Is there a jquery or other solution to making a html table allow user to arrow left, right, up and down?
0
Comment
Question by:KeithMcElroy
  • 2
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 500 total points
ID: 39206782
It's possible in html 5 just add contenteditable=true, See example Below:

<table width="100%" border="1" cellpadding="0" cellspacing="0"> 
<thead>
  <tr>
    <th>Item</th>
    <th>Item details</th>
    </tr>
</thead>
<tbody contenteditable="true">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
</tbody>
</table>
				

Open in new window

In this example your <tbody> section have content editable and you can use cursor.
0
 

Author Comment

by:KeithMcElroy
ID: 39206812
do i need to declare html 5 in the header somewhere?
In chrome, it is not working.
0
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 39207191
Which version of chrome you are using? It's working to me and it's  27.0.1453.94 . Or try adding html tag on the top like
<!doctype html>
<head>
<title></title>
</head>

Open in new window

0
 

Author Comment

by:KeithMcElroy
ID: 39207647
Yes, that seemed to do it.
A follow up question, and actually what I should have put in my original question.
is there a way to cursor between input boxes each contained in the td cells?
Shall award points.
Thank you!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now