English 中文(简体)
表格 形式选择
原标题:Form inside Form alternative

我有一个相当奇怪的问题。 我知道表格中的表格无效。 但我需要一种解决办法,使我能够做一些简单的事。

  • I use tabifier javascript library, to create tabs. Different tabs are created by using divs with special id for each tab.
  • 我的主要形式围绕如下所有表格:

    <form id=......>
       <div id=...>
       </div>
       <div id=...>
       </div>
    </form>
    
  • 在一个表格中,需要建立一个使用表格的存档系统。 如果将这种形式置于主要形式之外,则这种形式不是在表层布中显示的,而是本身。

    <form id=......>
       <div id=...>
       </div>
       <div id=...>
       </div>
       <div id= fileuploads >
            <form id=......>
            </form>
       </div>
    </form>
    

是否有办法使这项工作得以进行?

  • I tried moving the fileupload as the last subtab and then ending the main form before the last subtab, but this way the form ends inside the tab div. Which is also not valid html.
  • I m guessing that document.getelementbyid(div).innerhtml and inserting the form like that would not work aswell.

最新资料:

感谢这些答复,尽管我非常了解如何充分执行这些答复。 我提出了另一个想法。

如果只是建立文件载荷投入领域,而没有填满形式,则增加一个叫作“js”功能的纽子。 这项职能将文件载荷的数值置于零件和计数之外。

这是否是一个好的解决办法?

问题回答

3. 将文件上载控制置于外部:

<form id=...>
    <!-- other tabs go here -->
    <div id="fileuploads">
        <!-- your file upload controls and markup go here -->
    </div>
    <!-- other tabs go here -->
</form>

You can use a trick here. First leave the original wrapper form inact.

然后,如果你在文件上填充表格内放下一个子,在发送表格之前,便在文件上填写表格,并删除外部表格。 如果你在表格上寄出新的表格(原封面)后寄出表格(原封面)或文件。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签