Disable a field for few secounds ...

Javascript coding ..

Moderators: macek, egami, gesf

User avatar
WoozyDuck
New php-forum User
New php-forum User
Posts: 191
Joined: Wed May 05, 2004 10:14 am

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
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

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


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

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
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

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

that's the same as I did.

User avatar
WoozyDuck
New php-forum User
New php-forum User
Posts: 191
Joined: Wed May 05, 2004 10:14 am

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


Return to “JavaScript”

Who is online

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

cron