[Answered ]-How to Replace All __prefix__ Placeholder Strings within Django Formsets empty_form Elements Using Only Javascript?

1👍

I used this concept:

const emptyForm = document.querySelector('#prerequisiteEmptyForm');
clone = emptyForm.cloneNode(deep=true);
clone.innerHTML = clone.innerHTML.replace(/__prefix__/g, '321');
👤Jarad

Leave a comment