Solved

Java Script, ASP.NET - Move Cursor To Certain Location

Posted on 2007-11-25
2
461 Views
Last Modified: 2008-02-01
Experts,
I have the following function on a button click, and i need the cursor to move to the beginning of the table mentioned:

                           if(obj.value=='Continue, Details...')
                           {
                                 document.getElementById('tbl_QuestionDetails').style.display = '';
                                 document.getElementById('tbl_QuestionDetails').style.visibility ="visible";
                                 obj.value='Continue, Category...';
                                 return false;
                           }
0
Comment
Question by:feesu
2 Comments
 
LVL 29

Accepted Solution

by:
Göran Andersson earned 125 total points
Comment Utility
The cursor can't move to a table, it can only move to an element that can have focus. Move it to the first field in the table:

document.getElementById('theIdOfSomeFormFieldInTheTable').focus();
0
 

Author Comment

by:feesu
Comment Utility
Thanks alot!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 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

6 Experts available now in Live!

Get 1:1 Help Now