Mateobus Posted November 22, 2006 Share Posted November 22, 2006 Hello all, I have a a form for the various types of results that can happen when someone shoots (for a soccer match). So if they, miss, or if its saved by the goalie. But if it is a goal, I want to show a drop down box for who got the assist. Can anyone do this with javascript? Any help is appreciated.[code]<form action="admin.php" method="post"> <select name="player" id="player"> <option>1</option><option>2</option> </select> <select name="type" id="type"> <option>Miss</option> <option>Save</option> <option>Goal</option> </select> <select name="assist" id="assist"> <option>1</option><option>2</option></select> <input name="home_shot" type="submit" id="home_shot" value="Shot" /> </form>[/code] Quote Link to comment Share on other sites More sharing options...
fenway Posted November 22, 2006 Share Posted November 22, 2006 You should be able to monitor the onchange of the select, and then show/hide the 2nd dropdown accordingly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.