Load a file and use sortable??
Hi there I'm working on a project and got stuck on this tiny script
I load some data from a file and I put in one div:
- function getloadedfile (fileurl){
- $.ajax({
- url : fileurl,
- dataType: "html",
- success : function (data) {
- $("#pagemodule_adminpopup").html(data);
- }
- });
- }
In this file I have some items which should be sortable:
- $(function() {
- $(".module_menu_move").sortable({
- axis : 'y'
- });
- $(".module_menu_move").disableSelection();
- });
The sortable only works then I don't load it as a separate file any hits on how I should solve this?