• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

showing cursor in textBox

 
Debashree Halder
Ranch Hand
Posts: 81
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi here I'm using onFocus event on a textbox which will call the following function:

function clearDateField(fieldName)
{
if (document.getElementById(fieldName).value == "mm/dd/yyyy")
{
document.getElementById(fieldName).value = "";
}
document.getElementById(fieldName).focus();
return true;
}

The problem is it is making foucs on the textbox after I press TAB key but it is not showing the cursor. Only if I type something then only the cursor is coming....

How to make the cursor visible after pressing the Tab key from the previous field?

Regards,
Debashree
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using onblur or onchange on the field to call that function?

Eric
 
Debashree Halder
Ranch Hand
Posts: 81
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using onfocus to call that function
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic