PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, November 8, 2022

[FIXED] how to create HTML dropdown menu

 November 08, 2022     css, html, menu     No comments   

Issue

my purpose is when i click Season , show dropdown menu for example season1,season2 how can do this ? this is my html code

<ul class="video-meta">
  <li>
    <a href="#">
      <img src="assets/images/6b1345063abbc415fde0677567f2cf59.jpg" alt="Bayley"></a>
    <span class="pl-10"> Bayley</span>
  </li>
  <li>
    <i class="fas fa-eye"></i>1260 Views
  </li>
  <li>
    <i class="fas fa-tags"></i> <a href="archive.html">Season</a></li>
  <li>
    <i class="fas fa-photo-video"></i> 2 h 20 min
  </li>
  <li>
    <i class="fas fa-calendar-alt"></i> Nov 2020
  </li>
  <li>
    <i class="fas fa-film"></i> 4K
  </li>
</ul>


Solution

You use the select tag for drop-downs with an option for each of the values.

<select name=season>
  <option>Season 1
  <option>Season 2
  <option>Season 3
</select>



Answered By - Allan Wind
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing