Home > Back-end >  How to make mouseover instead of clicking dropdown?
How to make mouseover instead of clicking dropdown?

Time:05-17

I am trying to make a mouseover (hover) instead of clicking the dropdown , I made this dropdown using select tag...can u guys suggest something.

Here is My code

<select name="source" id="source" onchange="showHide()">
    <option value="A">meesho</option>
    <option value="B">myntra</option>
    <option value="C">amazon</option>
    <option value="D">flipkart</option>
 </select>

CodePudding user response:

Use jQuery. It's a javascript library used for HTML event handling. You might find something useful there.

CodePudding user response:

you can get your complete answer from w3 here the links: https://www.w3schools.com/css/tryit.asp?filename=trycss_dropdown_button and https://www.w3schools.com/css/css_dropdowns.asp

  • Related