Preserving Click Events With jQuery UI

My click events weren\'t being preserved when using the jquery sortable functionality.  After dragging a list item around, elements like my checkboxes would no longer work, and not just for the element that was being dragged, but for any of the checkboxes in the entire list.  It took a bit of searching, but to get this working, you need to add the \'helper: clone\' option, so something like:



$( ".selector" ).sortable({
   helper: "clone"

This solved the click event issue, but brought up another issue. Basically whenever a clicked to drag a list item, it would \'highlight\' all of the elements below the selected list item. I was using an older copy of the jquery ui, and the solution to this issue was to just upgrade my copy.

Related Posts

Simple Sticky Element

The user scrolls down the page and once the scrolling reaches the top of an element of my choosing, that element sticks to the top of the window, so it's always visible from that point on...
Read Post

Removing the Horizontal Margins on a Google Chart Graph

I seem to be able to successfully modify quite a bit with google charts, but I couldn't find a good way to remove the horizontal padding to the left and right of a google graph. From what I can find, there really isn't a good way to do it...
Read Post

PHP JSON Returned As Object Instead of Array

I was returning, what I thought was an array from PHP, but it kept returning it as a json object...
Read Post

A Simple Slideout Menu

I just wanted an easy slideout menu. Click on a link, and the menu slides out from the left side of the screen. Click on the link again, or somewhere else on the page, and the menu slides back in...
Read Post