Populate second text box based on value extracted from first text box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #46
    Please enclose your posted code in [code] tags (See How to Ask a Question).

    This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

    Please use [code] tags in future.

    Moderator.

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #47
      Originally posted by sarega
      I have introduced a check box only if the check box is clicked only then the second text box has to be populated how can i check everytime whether the check box is clicked or not?
      Use the checked property of the checkbox.

      Comment

      • sarega
        New Member
        • Oct 2008
        • 82

        #48
        I have used this
        if(document.get ElementById("th ird").checked== true) but its not working can somebody tell me the reason??

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #49
          Use a button or onkeyup (as you had earlier) to call the function, not onclick on the checkbox.

          Comment

          • sarega
            New Member
            • Oct 2008
            • 82

            #50
            ok thanks for the reply

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #51
              So did you manage to get it to work?

              Comment

              • sarega
                New Member
                • Oct 2008
                • 82

                #52
                ya I got it worked for the check box itself

                Comment

                Working...