I have created the list in SharePoint 2013. I got the list item id using javascript. But the recently deleted item id is not updated in SP-2013. I need to get the upcoming list item id. Please suggest an idea.
For example, if list having 20 items. The last item id is 20. I have deleted the last two items. Now the list having last id of 18. But newly inserting item id is 21. so, how to get the upcoming item id using javascript.
Note : the list item inserting in SharePoint itself, not custom. Please suggest an idea.