Hi Marc
Currently I have this code:
What I need is for it to write it to the CEWP that the script is in and only show the count of items for the Monday to Sunday.
Thanks
Alan
Currently I have this code:
<script type="text/javascript" src="/scripts/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="/scripts/jquery.SPServices-2014.01.min.js"></script>
<script language="javascript" type="text/javascript">
$().SPServices({
operation: "GetListItems",
listName: "Opportunities",
async: false,
completefunc: function (xData, Status) {
$(xData.responseXML).find("rs\\:data").each(function() {
itemCount = $(this).attr("ItemCount");
});
}
});
alert(itemCount);
</script>
Which works, in that it shows an alert with a count of the current number of list items.What I need is for it to write it to the CEWP that the script is in and only show the count of items for the Monday to Sunday.
Thanks
Alan