Strange error with jquery sorting: not a function

I get a weird error when I use jqueryui sortable. It says:

$(this).sortable(); is not a function. 

How to solve this?

change heres my header code:

 <script src="jquery.min.js"></script> <script src="jquery.ui.core.js"></script> <script src="jquery.ui.widget.js"></script> <script src="jquery.ui.mouse.js"></script> <script src="jquery.ui.sortable.js"></script> 

and heres the code that I use to update my my xml edit file.

 $("#sortable").sortable( { update : function(event, ui) { //var change = $(this).sortable('toArray').toString(); // $('#show').html(change); var order = $(this).sortable('toArray'); //var order = $(this).val; $("#show").load("update_engine_xml.jsp?order="+ order); //$("#showid").html(ui.item.context.id+" "+event.target.id); } }); 

EDIT: 2 any suggestions why am I getting this error ?!

+4
source share
3 answers

You did not provide a jQuery UI link?

+8
source

I had a similar error, and I see that if the path or file name is incorrect, JavaScript is not loaded, and you almost received no feedback at its end ... only the download returned 404. You can see this in your Apache logs in general.

0
source

I had the same error. I realized that my jquery-ui-1.8. *. Custom.min.js does not contain all the necessary components. I downloaded it with all the components and started working. You can download additional components at http://jqueryui.com/download

0
source

Source: https://habr.com/ru/post/1344832/


All Articles