I used the following code in SharePoint 2010 to get itemCount from a list

itemCount = $(xData.responseXML.xml).find("rs\\:data, data").attr("ItemCount");

But when I use it in SharePoint 2013, its not working. Any work around?

Thanks in advance.

1 Answer 1


Try below code.


Hope it will works for you.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.