Do not accept keyboard input for text boxes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swethak
    New Member
    • May 2008
    • 118

    Do not accept keyboard input for text boxes

    Hi ,

    I got one problem. i created the text box like <input type=text name=textbox1> and next browse button is there . I selected the data through browse button and inserted that data into text box. But In that it take data from keyboard it also accepted.My requirement is it don't take data from keyboard only take from browse button.

    plz tell that the javascript logic for the above problem.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    you just may use the readonly attribute of the textbox for that purpose ...

    kind regards

    Comment

    Working...