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 questionI 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.
精彩评论