At work we use a program that allows us to create html forms to use with their mobile app. The form allows javascript, however, upon submission any element content changed using innerHTML property is erased and the default content is the whats submitted (blank). I have been searching for a work around and noticed if instead I use an input as the element and change its value with javascript, upon submission the changed value will not be erased if the user clicks into and adds one more character
My question is how does the submission button differentiate between a changed value via js, vs a manually inputted value? And is there a property I can use to make the form think a value was inputted manually?
I am limited to what the app allows me to do, i am unable to change anything about the submission button
example
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…