Using Javascript to get info from an ASP.NET Textbox?

  • Thread starter Thread starter Glitch
  • Start date Start date
G

Glitch

Guest
alright so I have an <asp: TextBox ID = "txtValidText" runat = "server" />

tag goin and need some help getting my code to recognize the text box the same way it would recognize an input label as in HTML.

In my code behind file I have this:
txtValidText.Attributes.Add("onblur", "addCheck()")
which works great.... keep in mind this is visual basic.

but i need to get the text from my textbox.... how do I do so?
Is this something that can only be done with an input tag? Please help!
 
Back
Top