Skip to content
  • home
  • portfolio
  • web design journal
  • blog
    • adventure
    • san diego
    • projects
    • website design
Blog Web Dev Preserving Click Events With jQuery UI

Preserving Click Events With jQuery UI

By Forrest Smith - Drempd.com

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.

Posted on August 30, 2015August 26, 2022 in Web Dev
  • Adventure

    • adventure
    • gravelgrinding
    • hiking
    • running
  • The Built Environment

    • architecture
    • urbanity
  • Locations

    • san diego
    • portland
  • Freelance Life

    • freelancing
    • productivity
  • Web Dev

    • css
    • entrepreneurship
    • git
    • handlebars
    • html
    • inkscape
    • photoshop
    • php
    • sass
    • web design
    • web development
    • saphire

drempd | san diego, ca


home contact

adventures san diego urbanity and architecture projects stream website design

portfolio resume san diego web design freelance web designer

custom web design responsive web design website maintenance