Is it valid to have a html form inside another html form?

前端 未结 14 1951
故里飘歌
故里飘歌 2020-11-22 06:01

Is it valid html to have the following:

14条回答
  •  没有蜡笔的小新
    2020-11-22 06:51

    No, it is not valid but you can trick your inner form position on the HTML with a help of CSS and jQuery usage. First create some container div inside your parent form and then in any other place on the page the div with your child (inner) form:

    
        
        

    ....

    Give your container div some stable heaght

     
    

    Thank trick the "other_form" position relatively to container div.

    
    

    P.S.: You'll have to play with numbers to make it look nice.

提交回复
热议问题