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. Quote Link to comment 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> Quote Link to comment 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. 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.