using javascript to handle textchanged event?

Hello experts I am trying to use javascript to handled the text changed event of one of my textboxes and set the value of a label equal to the textbox.  I am using 1.1 how can i do this with javascript?  I could do all of this server side, but then I get the post backs, which I dont want.  Below i tried setting a attribute in the page load event

code behind
 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
        txtpackage.Attributes.Add("TextChanged", "textboxchanged();")
    End Sub

      <script language="javascript">
            function textboxchanged(){
            document.Form1.lbllabel.value = document.Form1.txtpackage.value
Who is Participating?
Justin_Case_77Connect With a Mentor Commented:
txtpackage.Attributes.Add("onChange", "textboxchanged();")
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.