i use Laravel and i have a form with laravel validation and required fields (so when I get errors, it reload always all page, and I keep values with old blade tag). All good, but I did a button to add some text boxes with jquery
$(".add-more").click(function(){
var html = $(".copy").html();
$(".after-add-more").before(html);
});
$("body").on("click",".remove",function(){
$(this).parents(".control-group").remove();
});
How can i save old values and the created n-html elements when Laravel reload all page at every invalid message after submission ? Thx
localStoragesave data intolocalstorage, retrieve when you need it, but remember to emptylocalstorageon each reload page. - Akhtar Munir