linux1880 Posted January 15, 2010 Share Posted January 15, 2010 I want to make sliding vertical drop down menu (not poppoing out) can anyone give me a code ? I thought it would be achieved with css but no luck. Pls help. Link to comment https://forums.phpfreaks.com/topic/188608-i-want-to-make-vertical-drop-down-menu/ Share on other sites More sharing options...
fareedreg Posted January 15, 2010 Share Posted January 15, 2010 try this ....i am copying my code.. you can cut and define urs <select name="cmbbook" id="cmbbook" select onchange="showBook(this.value);"> <?php include('connect.php'); $Tb = "book_master"; mysql_select_db($Db, $link); $query = "select book_id from $Tb order by book_id"; $result= mysql_query($query,$link); $fel=mysql_num_fields($result); $nro=mysql_num_rows($result); if ($nro>0) { //echo "<select Member='itemmem'>\n"; echo "<option>-- Select Book --</option>\n"; while ($row=mysql_fetch_array($result)) { echo "<option value='$row[book_id]'>$row[book_id]</option>\n"; } } mysql_close($link); ?> </select> </td> Link to comment https://forums.phpfreaks.com/topic/188608-i-want-to-make-vertical-drop-down-menu/#findComment-995795 Share on other sites More sharing options...
linux1880 Posted January 16, 2010 Author Share Posted January 16, 2010 well, why would i need database connection ? would it not accompolished by javascript ? i have a list vertical menu but i need someway to drop down but not pop out thanks. Link to comment https://forums.phpfreaks.com/topic/188608-i-want-to-make-vertical-drop-down-menu/#findComment-996033 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.