aopon
(Andrzej)
1
Hi,
I added yii\jui\JuiAsset to my assets, I have a table to sort:
<table>
<tbody>
<tr><td>A1</td></tr>
<tr><td>A2</td></tr>
<tr><td>A3</td></tr>
</tbody>
</table>
I use this JS code:
$('table tbody').sortable({
update: function () {
var data = $(this).sortable('toArray');
}
});
There is no error on page load, Sortable works fine. Only after update I get an error:
TypeError: $(…).sortable is not a function
I tried to change update to:
$('table tbody').sortable('toArray');
but I get the same error
Any ideas?
1124ritesh
(1124ritesh)
2
your problem seems like … ur page have not got required JS.
Check this for more information Check This