If I have several divs:  <div data-sort='1'>div1</div> <div data-sort='4'>div4</div> <div data-sort='8'>div8</div> <div data-sort='12'>div12</div> <div data-sort=...
I have elements on the page which are draggable with jQuery. Do these elements have click event wich navigates to another page (ordinary links for example).  What is the best way to prevent click from firing on dropping such element while allowing...
I cannot find out how to obtain destination element with jQuery UI sortable.      $("#pages").sortable({         opacity: 0.6,         update: function(event, ui) {             var first = ui.item; // First element to swap             var sec...
here is a simple question.  I have a 'ul' which i have made sortable via jquery-ui's sortable() function.  I want to remove elements when they are dragged off the list.  The way i have it implemented works in the sense that when i drag an...
This is a follow up to a question: KnockoutJS Sortable group observableArray by field and conditionally sort  There are two further things I am battling to achieve. First when a nested list item is dragged to another list leaving the parent empty I w...
I'm new to jQuery, and I'm totally struggling with using jQuery UI's sortable.  I'm trying to put together a page to facilitate grouping and ordering of items.  My page has a list of groups, and each group contains a list of items. I...
The below code does not fully disable the sortables on the start event. It will add the classes ui-sortable-disabled and ui-state-disabled to the sortable elements, but it doesn't disable the functionality - in other words, the sortables look dis...
I'm having an issue with my jQuery sortable list, where the text is being selected. I discovered the function disableSelection() but can't seem to get it working.  Here's the js:  $('ul#current_projects').sortable({ placeholder: &...
The idea is pretty simple and it almost works. There are two tables and the user has the option of dragging rows between the two tables. When a row is dragged from table1 to table2, ajax is used in order to update the database with the data that is r...
Maybe I don't understand how clone works with sortable, but here is what I would like to do.   When sorting an item I would like a clone of the item I am dragging remain until I stop drop the item in its new position.  Here's the code:  <h...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.