Make an object for text box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bhuvragu
    New Member
    • Jul 2007
    • 6

    Make an object for text box

    Hi

    Continue to my previous post on demo using html_ajax, i want to make the text field (which is added html_ajax functionality to display list of matching words when you type a text) as an object. So that i would be able to add simply the object name (text field) where ever needed and access the html_ajax functionality without retyping all the codes for html_ajax.

    For example, i may want to add the text field with html_ajax functions for "AccountNam e" field and "Account Code" field etc..

    I am not sure this is the only way.
    Help would be much appreciated.

    Thanks in advance
    regards,
    BR
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    You could use document.getEle mentsByTagName( "input") and check the type ("text") to get all the text boxes and add the functionality separately from the HTML markup.

    Comment

    • bhuvragu
      New Member
      • Jul 2007
      • 6

      #3
      Thank You very much for your idea. I will try and let you know .

      Comment

      Working...