有些情况下,同一个form在不同的情况下提交到不同的处理动作,可以在js中动态改变form的属性,满足不同条件的form提交需求。 如: 代码如下: <form id=”form” name=”form” method=”POST” enctype=”multipart/form-data” action=”action1.jsp” target=”iframe”> <input type=”file” name=”file” id=”file” class=”input_text80″></input> <input id=”name” name=”name”/> <input type=