I am trying to add text to a placeholder field that appears when dragging a sorted item. is there a function in jQuery UI that I don't see? Now I am trying to execute .append () information, but it does not work. Can anyone help? Here's the jQuery function ...
//Sortable Function - Edit Wizard $(function () { //add text to placeholder box if ($('.ui-state-highlight').is(':visible')) { $('.ui-state-highlight').append('<span>MOVE HERE</span>'); }; $(".sortable").sortable({ placeholder: "ui-state-highlight", //revert: true, grid: [20, 20], handle: '.editMove', opacity: 0.6, scroll: true, scrollSensitivity: 80, zIndex: 10 }); $(".sortable").disableSelection(); });
EDIT: Suppose for the .append () function? should there be a change function .live ()?
Cheers, Mike
source share