Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: submit problem

  1. #1
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •