Dynamically added form elements are not POSTED in IE 9

后端 未结 5 1902
南旧
南旧 2021-01-14 19:29

I have a form which is used to make a Test. User enter a question and provides question type and the Answer options and saves the Question. What has gone wrong is that when

5条回答
  •  滥情空心
    2021-01-14 20:13

    It is possible that you have some improper HTML. For example, a kinda random possibility that was a symptom of this and worked for me: Try changing your

    to a .

    I was having the same issue with using innerHTML to insert HTML data into a div but IE9 not recognizing it. Even if I tried to just alert the field value it didn't know it existed even though it worked fine on IE8, Chrome, etc. But I changed the

    to a and voila, it understood perfectly.

    As it turned out, I had some improper HTML syntax. Specifically, my

    tag was inside a

    tag. Unlike all the other browsers, IE9 did not forgive this and only understood my inserted elements when they were inside p > form > span instead of a p > form > div. Of course the real solution was to correct my HTML structure. Then IE9 understood the

    as well as the .

提交回复
热议问题