Object Required Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deegeorge
    New Member
    • Nov 2008
    • 58

    Object Required Error

    Hi,
    I created a textbox and button in .aspx page and there am hiding both controls.Wen clicking on an anchor tag these two controls need to show.For that i created a method called show()
    Its like this
    Code:
    function show()
    {
    	document.getElementById('txt_fpswd').style.display='inline-block';
           	document.getElementById('btn_ok').style.display='inline-block';
    }
    But its giving an error like 'Object Required'.


    Pls help me.......
    Last edited by Dormilich; Mar 7 '09, 09:32 AM. Reason: added [code] tags
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    this could mean that you don't have the IDs in your HTML.

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Yes, show the HTML code for the text box, button and anchor.

      Comment

      Working...