This is a discussion on "displaying text for a set amount of time" within the JavaScript Forum section. This forum, and the thread "displaying text for a set amount of time are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
displaying text for a set amount of time
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
displaying text for a set amount of time
Hi
I have been trying to find an example via google but can not see any links to my problem so am trying here! I have function to strip out any char inputs on a form . I am trying to get it to to display a error message that chars are not alllowed. I am using the .innerHTMl on a bold tag next to below the form dispaly an error mesage once a non-char is inputted. It shows when a char is inputted but I wantt it to display only for a set amount of time. At the moment it just stays there intill the page is re-freshed. Any help on how to do it would be great! Code- function validNumeric(f) { if (!/^\d*$/.test(f.value)) { document.getElementById('error').innerHTML = 'Please Only enter letters'; f.value = f.value.replace(/[^\d]/g,""); } } |
|
|
|
||||
|
Re: displaying text for a set amount of time
You can use this
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| making text field text disapear | Phixon | JavaScript Forum | 4 | Feb 2nd, 2008 07:49 |
| [SOLVED] why isnt my javascript displaying the text | skat | JavaScript Forum | 3 | Jan 26th, 2008 20:43 |
| [SOLVED] Are there limits on the amount of data that can be posted via an ASP Form? | Phil | Classic ASP | 5 | Oct 26th, 2007 08:43 |
| Approve the Amount | accessman | Databases | 1 | Sep 24th, 2005 06:52 |
| Adjusting time from server time to local time | Tim356 | Classic ASP | 10 | Jun 21st, 2004 14:57 |