Skip to content

Instantly share code, notes, and snippets.

@oroce
Created July 25, 2011 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oroce/1104010 to your computer and use it in GitHub Desktop.
Save oroce/1104010 to your computer and use it in GitHub Desktop.
sven droplist
$(document).ready(function () {
$("#droplist").dropList({
style: "green",
width: 220,
target: "self",
speed: 500
})
$("#droplist").siblings(".dropList-box").trigger("click");
$(".color").click(function (e) {
e.preventDefault();
var color = $(this).attr("id");
$("div").eq(1).removeClass();
$("div").eq(1).addClass("dropList-layout").addClass(color);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment