Is there a jQuery plugin that approximates the functionality of the country/currency dropdown on the Kayak homepage?
I need to do something开发者_如何学JAVA similar on my own site and don't want to reinvent the wheel if possible.
Example (it seriously can be done in many variations)
<style>
#currencyLink { position: relative; } // we make anchor for the absolutely positioned #currencyList
#currencyList { display: none; position: absolute; top: 0px; left: 0px } // you may need to tweak these values
</style>
<div id="header">
<div id="currencyLink"><span onclick=" $('#currencyList').toggle(); ">Show currencies</span>
<div id="currencyList">
<a href="#">Currency 1</a>
<a href="#">Currency 2</a>
<a href="#">Currency 3</a>
</div>
</div>
</div>
精彩评论