Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

Disable a field for few secounds ...

Javascript coding ..

Moderators: macek, egami, gesf

Disable a field for few secounds ...

Postby WoozyDuck » Sun Jan 09, 2005 2:08 pm

Hi

how can I disable a field like an input field for few seconds
using JavaScript and bring it back to enable again after that?
User avatar
WoozyDuck
New php-forum User
New php-forum User
 
Posts: 191
Joined: Wed May 05, 2004 10:14 am

Postby Redcircle » Sun Jan 09, 2005 8:38 pm

User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Postby Alexej Kubarev » Mon Jan 10, 2005 2:04 am

Code: Select all
<script language="Javascript" type="text/javascript">
 temp_disable = setTimeout('document.getElementById("field").disabled = false;', 3000);
</script>


3000 milliseconds = 3 seconds
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby Redcircle » Mon Jan 10, 2005 9:16 am

that's the same as I did.
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Thanky

Postby WoozyDuck » Mon Jan 10, 2005 6:53 pm

Thanx both Redcircle and Alexei Kubarev
The codes work fine for me
I appreciate that
User avatar
WoozyDuck
New php-forum User
New php-forum User
 
Posts: 191
Joined: Wed May 05, 2004 10:14 am


Return to JavaScript

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.