Saturday, 15 February 2014

javascript - Why my MVC pattern doesn't work? -



javascript - Why my MVC pattern doesn't work? -

i had written html code drag , drop function, received right output. i've changed same code mvc didn't receive output, mean drag , drop isn't works.it shows next error:

uncaught error sortable not function

here code:

var startposition; var endposition; $("#datatable-wrapper #example tbody").sortable({ cursor: "move", start:function(event, ui){ startposition = ui.item.prevall().length + 1; }, update: function(event, ui) { endposition = ui.item.prevall().length + 1; alert('start position: ' + startposition + ' end position: ' + endposition); } });

javascript jquery html drag-and-drop

No comments:

Post a Comment