Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/471.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用Javascript关闭模式(Metro UI)_Javascript_Jquery_Twitter Bootstrap_Microsoft Metro - Fatal编程技术网

使用Javascript关闭模式(Metro UI)

使用Javascript关闭模式(Metro UI),javascript,jquery,twitter-bootstrap,microsoft-metro,Javascript,Jquery,Twitter Bootstrap,Microsoft Metro,我试图创建一个关闭模式的按钮,但是我在javascript中找不到关闭模式的正确语法,默认情况下,它会带来一个关闭按钮,但是我需要一个额外的按钮来关闭模式 代码如下: <div id="textContent" style="margin: 4px; padding: 8px"> <br> <table> <tr> <td align=right> <label for="" class="form">Puesto

我试图创建一个关闭模式的按钮,但是我在javascript中找不到关闭模式的正确语法,默认情况下,它会带来一个关闭按钮,但是我需要一个额外的按钮来关闭模式

代码如下:

<div id="textContent" style="margin: 4px; padding: 8px">
<br>
<table>
<tr>
  <td align=right>
   <label for="" class="form">Puesto de Trabajo:</label>
  </td>
  <td>
    <div class="input-control text">
     <input type="text" name="txtPuesto" id="txtPuesto" value="'+puesto+'">
     <button class="btn-clear" tabindex="-1"></button>
    </div>
  </td>
</tr>
<tr>
 <td align=\'right\'>
  <label for="" class="form">Sucursal:</label>
 </td>
 <td>
  <div class="input-control select">
   <select name="SelSucursal" id="SelSucursal" onchange="Select(this.value);">
    <option value="">-Seleccione-</option>
   </select>
  </div>
 </td>
</tr>
<tr>
 <td align=\'right\'>
  <label for="" class="form">Departament:</label>
 </td>
<td>
 <div class="input-control select" id="deptoss">
  <select name="SelDepto" id="SelDepto">
   <option value="">-Choose-</option>
  </select>
 </div>
</td>
</tr>
<tr>
 <td colspan="2">
  <br>
  <div class="place-right">
   <a class="button primary" id="gd02" onclick=\'javascript:UpdateJobPlace('place')\'>Save Changes </a>
  </div>
 </td>
</tr>
</table>
<br>
</div>


普埃斯托·德特拉巴霍: 成功的: -塞莱奇奥尼- 部门: -选择-
保存更改
希望你能帮助我。
感谢您将
data dismission=“modal”
添加到您的按钮。

这可能会对您有所帮助

object.onclick=function() {
    modal.style.display = "none";
};