Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • Last Modified:

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

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
feesu
Asked:
feesu
1 Solution
 
Göran AnderssonCommented:
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
 
feesuAuthor Commented:
Thanks alot!
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now