How to use javascript how to get textbox id of a gridview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rhtdmrai
    New Member
    • Oct 2010
    • 9

    How to use javascript how to get textbox id of a gridview

    suppose i have gridview in which i have multiple empty Textbox ; In this i want to use autocomplete property of jquery in a particular textbox ; so fro this i have to firstget the id of this textbox .

    so how can we get the id of this textbox that is inside a gridview
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    #2
    var txtNameID = '<%= txtname.ClientI D %>';

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Hmm, I think you'll have to add an AutoComplete extender to each textbox during the GridView's RowDataBind event. I don't think the ClientID will work with the AutoComplete extender.

      Comment

      Working...