Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / September 2004



Tip: Looking for answers? Try searching our database.

Order

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kt03 - 30 Sep 2004 20:06 GMT
I have 2 dropboxes, is ther a way to force user to select in order wich mean they have to select the dropbox # 1 before they select the dropbox # 2?

Thanks
The ScareCrow - 01 Oct 2004 00:46 GMT
Only with javascript, the attached is a working example

Ken

<script language="JavaScript">
<!--
    function checkSelection(form){
        if(form.selectOne[form.selectOne.selectedIndex].value == 0){
            alert('Must make a selection from select 1 first.');
            return false;
        }
    }
//-->
</script>
<form action="" method="post" name="form1" id="form1">
<table>
    <tr>
        <td>
            <select name="selectOne">
                <option value="0">Please Select</option>
                <option value="1">select 1 option 1</option>
            </select>
        </td>
        <td>
            <select name="selectTwo" onchange="return checkSelection(this.form);">
                <option value="0">Please Select</option>
                <option value="1">select 2 option 1</option>
            </select>
        </td>
    </tr>
</table>
</form>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.