开发者

What's the most simple JQuery plugin for this drop down thing? [closed]

开发者 https://www.devze.com 2023-03-14 06:08 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 9 years ago.

Improve this question

I want a button that says, "Send a private message". And when that button is clicked, a list of friends drops down.

I don't want to use heavy JQuery menu plugins, because th开发者_开发百科ey're too heavy and are made for navigation.


I would suggest simply using a hidden div element, which you populate with the required data either in the click event handler on the button, or when the page loads. You can then use the standard jQuery functions such as slideDown or show to make the div visible:

$("#yourButton").click(function() {
    $("#hiddenDiv").slideDown();
});

That way, you don't need to include any JavaScript library files except the base jQuery file.

0

精彩评论

暂无评论...
验证码 换一张
取 消