リスト項目の属性を取得しようとしていますが、リスト間でドラッグしています。リストは、JQuery-UIのスクロール可能なプラグインを使用して動的に作成されています。リストのスクロール可能な側面が働いているスクロール可能なJQuery UIの属性を取得しました。
は、私はちょうど私の難易リスト項目
から属性「グリッド」を取得し、ここで私のjavascriptのですが生じています。ここで
$(
function() {
$("#sortable1, #sortable2").sortable({
connectWith: ".connectedSortable"
}).disableSelection();
$("#sortable1").bind("sortreceive", handlefinanceitemdrop);
$("#sortable2").bind("sortreceive", handlelinkdrop);
}
)
function handlefinanceitemdrop(draggingevent, draggingui) {
alert($(".finance_item ui-sortable-helper").attr("frid"));
}
function handlelinkdrop(draggingevent, draggingui) {
alert($(".secenareo_item ui-sortable-helper").html());
}
例リストラインを使用すると、リスト項目の属性を取得したい場合は
<li id="sl6" class="scenario_item" slid="6">Sample Transaction - Expence - Normal - Monthly - 50.00 - 50.00<br></li>
おかげ
UI-ソート可能なヘルパーがアイテムをドラッグされているクラス名に付加されて、私のラインの一例と –