- `, 6 in this case. But how can I know the position of a specific `
- ` like, the `
- ` with the `id` 373231, where this `
- ` are inside my `
- ` ? The return that I want is the number 5, because he is the fifth `
- ` element in my `
- `
**UPdate**
My function
$(function () {
$("#sortable").sortable({
stop: function (event, ui) {
debugger;
// Getting a WRONG Position
alert($(this).index());
}
});
$("#sortable").on("sortstop", function (event, ui) {
// Getting a WRONG Position
alert($(this).index());
});
$("#sortable").disableSelection();
});
- ` element in my `
以上就是How can I know the position of a specific element的详细内容,更多请关注web前端其它相关文章!