Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hi how can i hidden for example textbox for a long time and then display it after this timeand then this period continue
if this with java script or jquery how link this to asp.net
and in everyface give code to me thanks
Posted
Comments
OriginalGriff 5-Oct-11 5:46am    
dear will you please explain your question in more details...

devildx2050

[edit]Moved from answer - OriginalGriff[/edit]
rkthiyagarajan 5-Oct-11 5:58am    
Clear your question.

From what I understand from your question, you want to hide a control from your webpage and display it after some time. You can do something like this in JavaScript.

JavaScript
var myTextbox = document.getElementById('myTextbox');
myTextbox.style.display = 'none';
setTimeout('DisplayControl', 10000); //Display it after 10 seconds

function DisplayControl() {
    var myTextbox = document.getElementById('myTextbox');
    myTextbox.style.display = 'block';
}
 
Share this answer
 
Hi,

Here I write some code for your requirement check this once


HTML
<input type="text" name="data" id="data" style =" display :none;">


In the desing I take one html textbox

And javascript contains following code
JavaScript
var e = 0;
   var tmp;
   function f1() {
       e = parseInt(e) + 1;
       if (parseInt(e) == 30) {
           document.getElementById("data").style.display = '';
       }
       tmp=setTimeout("f1()", 300);
}


And you've to add this f1 function in onload event of page like

HTML
<body onload ="f1()" >


That method counts the time

I hope this helps you

All the Best
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900