我需要立即提交我的表单,而不使用带有html 5的struts2中的提交按钮

时间:2015-05-26 08:21:51

标签: struts2

因为我在右侧菜单中有保存按钮。因此,当我在右侧菜单中按下save时,它应该将值保存到bean中而不提交表单。

  <form action="personal-info.action" id = "userform" name="userform" method="post">
      <div class="clearfix">
        <h2>Basic Information</h2>
        <div class="row">
          <div class="col-sm-6">
            <div class="row">
              <div class="form-group clearfix col-sm-12 col-xs-6">
                <label>Title</label>            
                <div>
                <s:select list="titleList" listKey="displayKey" onChange="jsFunction()"  listValue="displayValue"  name="title"   id ="title" cssClass="selectpicker show-tick" required="true"  />
                <!-- <select class="selectpicker show-tick" data-width="auto" name="title" required>
                  <option value="Mr.">Mr.</option>
                  <option value="Ms.">Ms.</option>
                  <option value="Mrs.">Mrs.</option>
                </select> -->
                </div>
              </div>
              <div class="form-group clearfix col-sm-12 col-xs-6">
                <label>Gender</label>
</form>

0 个答案:

没有答案