Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. $(document).ready(function() {
  2. arrayIn_OutItems();
  3.  
  4. $.ajax({
  5. url: siteUrl,
  6. type: "GET",
  7. async: false,
  8. headers: {
  9. "accept": "application/json;odata=verbose"
  10. },
  11. success: function (data) {
  12. array = data.d.results;
  13. console.log(array);
  14. var isYes =
  15. for(var i = 0;array[i].length < 0;i++{
  16. array.every(function (e) {
  17. return e == "Yes"
  18. });
  19. }
  20. if(isYes == true){
  21. document.getElementById('yes/no').innerHTML = "Done";
  22. }else{
  23. document.getElementById('yes/no').innerHTML = "Not Done";
  24. }
  25.  
  26. },
  27. error: function (err) {
  28. console.log(err);
  29. }
  30. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement