I have a code that dynamically registers the input data in the localStorage.
I am trying to recover the data registered in their respective inputs, but without success.
This is the code to recover the data, but only retrieve the first data:
$("#exibir").click(function(){
for (var i = 0; i < localStorage.length; i++){
var inputs = $('input[type="text"]');
inputs.val(localStorage.getItem(localStorage.key(i)));
}
})
Thank you in advance!