
September 5th, 2005, 07:46 PM
|
|
Contributing User
|
|
Join Date: Apr 2007
Location: Miami, Fl. US
Posts: 522
Time spent in forums: 8 m 29 sec
Reputation Power: 2
|
|
|
Reset form select only...
Wondering if anyone knows javascript code that I can implement inside an if to reset a single form select.
I have the following error trapping:
php Code:
Original
- php Code |
|
|
|
function showDiv( id ) { if ((daily_staffing.type.selectedIndex == 1) || (daily_staffing.type.selectedIndex == 6) || (daily_staffing.type.selectedIndex == 14)) { document.all[ id ].style.display = 'block'; } else { document.all[ id ].style.display = 'none'; document.daily_staffing.time_beg.value=""; document.daily_staffing.time_end.value=""; document.daily_staffing.total_hours.value=""; document.daily_staffing.approving_supervisor. reset (); } }
The last one that says reset() doesn't work. But that is what I need to have reset.
|