Solved

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

Posted on 2007-11-25
2
470 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 125 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

730 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