Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2007-11-25
2
Medium Priority
?
475 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
Göran Andersson earned 500 total points
ID: 20345347
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
ID: 20349137
Thanks alot!
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
Suggested Courses

604 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