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? Link to comment https://forums.phpfreaks.com/topic/199061-click-help/ 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> Link to comment https://forums.phpfreaks.com/topic/199061-click-help/#findComment-1044904 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.