jquery to hide txtbox <p>I want to hide my textbox-X in classic asp according to the date entered textbox-Y. textbox-X is in different asp page and textbox-Y in different page but both are contained in one base page default.asp i used the following condition and code to hide my textbox-Y, but in vein. </p> <pre><code>if (document.getElementById('txtAmount')) { alert("Inside first alert"); $("#txtPRAmount1").hide(); alert("Inside second alert"); } </code></pre> <p>here first alert fires and but second alert doesnt. please help me</p>