jquery - Is there anway to fnd out of list item dragged by mouse or by button click -
i have 2 asp.net bulleted lists, , using jquery sortable on them move items arround.
now user can click on checkbox, checkbox re-arrange items in lists logic it's getting web services.
but when user moves around items, want uncheck checkbox, have update event on lists.
what want figure out when documents moved click event , when user dragged them on 1 or list
in other words, want uncheck box, if user drags documents himself, leave checkbox if checkbox's click event moves documents.
edit
$(document).ready(function () { $(".somelistsclass").sortable({ connectwith: ".somelistsclass", cursor: "default", update: function (event, ui) { settimeout(function () { resetfruitsnow(); }, 100); } }).disableselection(); $(".somelistsclass").droppable({ drop: function (event, ui) { $("[id$=checkbox123]").prop('checked', false); } }); });
move $("[id$=checkbox123]").prop('checked', false);
start
event.
like this:
$(".somelistsclass").sortable({ connectwith: ".somelistsclass", cursor: "default", update: function (event, ui) { settimeout(function () { resetfruitsnow(); }, 100); }, start: function(event, ui){ $("[id$=checkbox123]").prop('checked', false); } }).disableselection();
Comments
Post a Comment