UnknownPlayer Posted April 19, 2010 Share Posted April 19, 2010 Can someone tell me how can i put when click on some value on <select>, to put new <select> list new to this list with sub items? Quote Link to comment Share on other sites More sharing options...
UnknownPlayer Posted April 19, 2010 Author Share Posted April 19, 2010 This is the code, when i click on this <select> i wonna to appear new <select>, next to first one, with new items. Any idea how i can do that? <p><b>Departman:</b> <select name="departmani"> <?php echo "<option value=\"izaberi\">-- Izaberite Departman</option>"; $query = "SELECT * FROM departmani"; $result = mysql_query($query, $connection); for ($i = 0; $i < mysql_num_rows($result); $i++) { $dep = mysql_result($result, $i, "departman"); echo "<option value=\"{$dep}\">{$dep}</option>"; } ?> </select></p> 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.