Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Closed Thread
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-21-2006, 09:51 PM   PM User | #1
somsahi
New to the CF scene

 
Join Date: Aug 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
somsahi has a little shameless behaviour in the past
submit problem

<script language="javascript">
function submitF()
{
document.facilityForm.submit();
}
</script>

<html:form action="/iata">
Facility: <html:select property="facility"

name="facilityForm" size="1" onchange="submitF()">
<htmlption value="state">state</htmlption>
<htmlptions property="facilityList"

name="facilityForm" />
</html:select>

Hi I have a form conatining values which is submitting

though above script.
Now I have put a default value as "state"
when user select any other value excpet default then

corrosponding page is displayed but if user choose default

value there is error obviously.

I simply want that if user select default value "state"

nothing should be submitted.

please be specific if anyhting need to be chnaged in

javascript as no idea about javascript

regards
somsahi is offline  
Old 09-23-2006, 12:33 PM   PM User | #2
rmedek
Senior Coder

 
Join Date: Nov 2003
Location: Minneapolis, MN
Posts: 2,879
Thanks: 2
Thanked 65 Times in 56 Posts
rmedek is on a distinguished road
Do not crosspost.
__________________
drums | web
rmedek is offline  
Closed Thread

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:57 AM.


Advertisement
Log in to turn off these ads.