Skip to content

Instantly share code, notes, and snippets.

@mreidsma
Created June 1, 2012 19:27
Show Gist options
  • Save mreidsma/2854573 to your computer and use it in GitHub Desktop.
Save mreidsma/2854573 to your computer and use it in GitHub Desktop.
jQuery to make draggable links in our database admin page clickable.
// j is defined as jQuery noconflict mode on this page.
j("#other li").click(function() {
var selected = j(this).text();
selected = j.trim(selected);
var codeclass = j(this).attr("class");
var newlink = '<li class="' + codeclass + '">' + selected + '</li>';
j("#mpopular").append(newlink);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment