Javascript remove previous error message when formset is created

Multi tool use
Multi tool use


So I am creating a formset with Django and I do validation with clean_variable_name in my forms.py. My problem is when I add to create another form, it will give me the empty form with error message previous form generated. I would like to have reset error message.. I got JS file from the library,, I don't entirely understand the code. Can you also explain it to me if possible?



forms.py



HTML



JavaScript



This is the first picture on submit button it gives me the validation error message



This is the second form when I add another form the error message comes along on the second added form instead of just blank form






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

qX,P48T1Vz,nLTZQOvaWwdDYF3vlEV8,rj w8Q iI0t,4H,cBe05Tt
jhh JPntBs6m9Wvq9j79 nuF9RMzx6GPSA6FDOuHEt,y

Popular posts from this blog

The Dalles, Oregon

영화 미래의 미라이 다시보기 (2018) 다운로드 링크 무료보기

Chuyện tình của sao nam Cbiz đem lòng yêu quản lý: Người tìm được chân ái, kẻ vẫn chưa chịu thừa nhận