jquery .sortable() on

I believe the following fiddle is what you’re after: http://jsfiddle.net/GA4Qs/13/ jQuery sortable needs to be applied to the parent element containing the elements you want to be sorted. $(‘#psP’).sortable({placeholder: “ui-state-highlight”,helper:’clone’}); Also you didn’t close your divs in the right place. <div style=”position: relative;” class=”sortable”> <span class=”stepNum inset”>1</span> <textarea placeholder=”Escribe que hay que hacer en este … Read more

Jquery – sort DIV’s by innerHTML of children

To do this sort directly using the child values and without a plugin, you could use something like: function sortUsingNestedText(parent, childSelector, keySelector) { var items = parent.children(childSelector).sort(function(a, b) { var vA = $(keySelector, a).text(); var vB = $(keySelector, b).text(); return (vA < vB) ? -1 : (vA > vB) ? 1 : 0; }); parent.append(items); … Read more

How to exclude an element from being dragged in sortable list?

You need to use cancel. See working example here. Js: $(function() { $(‘.sortable’).sortable(); $(‘.sortable’).disableSelection(); $(‘.sortable’).sortable({ cancel: ‘.note’ }); });​ As @Zephyr points out, this let’s you re-arrange the position by dragging the siblings, if you want to avoid that, use owise1 approach: $(‘.sortable’).sortable({ items : ‘:not(.note)’ });

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)