Created
April 25, 2017 19:51
-
-
Save ezesundayeze/35b9a646fa9439c6bada9d168b8c53cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fetchTask(){ | |
var task = JSON.parse(localStorage.getItem('task')); | |
//output | |
var taskResult = document.getElementById('taskResult'); | |
taskResult.innerHTML =""; | |
for(var i=0; i<task.length; i++){ | |
var name = task[i].name; | |
var description = task[i].description; | |
taskResult.innerHTML+='<div class="well"><h3>'+name+' '+description+' </h3>' | |
'</div>' | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment