0

Here is my HTML:

<asp:TextBox ID="textname" runat="server" CssClass="TextBox" 
    OnClick="fnFocus(this.id)" ></asp:TextBox>

Here Is JavaScript

function fnFocus(id) {
    document.getElementById(id).focus();
}

The above code is working in all browsers except Chrome. On textbox click event I want to show focus at the first character of the input.

Any suggestions?

Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
Boss
  • 445
  • 2
  • 8
  • 24

0 Answers0