March 24, 2012

Rounded Corner single Dropdown menu with Hover functionality

Question by Anandhan

I’m new to jquery & javascript.. I need to create a drop-down with rounded corner that will work based on hover as shown below..

enter image description here

Answer by Starx

Give border-radius on the hover event

Using CSS

select:hover {
    border-radius: 10px;
    -webkit-border-radius: 10px; /* For safari */
    -moz-border-radius: 10px; /* For mozilla */
}

Here is an example using jQuery Snippet

$("select").hover(function() {
    $(this).css("borderRadius",10px);
});

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!