Here id dropdown fiddle
 <http://jsfiddle.net/ym8t7Lhj/>

The issue i am facing is i am having two dropdowns, if i click on one dropdown another dropdown is also opening.
Can any one help me out in this.

**Script**

```
        $(document).ready(function() {
        $(".dropdown dt a").click(function() {
        $(this).toggleClass("myclass"); 
         $(".dropdown dd ul").toggle();
         });

        $(".dropdown dd ul li a").click(function() {

            var text = $(this).html();
            $('.dropdown dt a').toggleClass('myclass');
            $(".dropdown dt a span").html(text);
            $(".dropdown dd ul").hide();
            $("#result").html("Selected value is: " + getSelectedValue("sample"));
        });      
    });

```