用于显示fullcalendar和刷新的两个按钮上的操作

我有这个场景</ p>

< / a> </ p>

在引导菜单下
两个按钮用于显示fullcalendar,一个用于在日历中添加事件</ p>

 &lt;  div class =“card-body”&gt; 
&lt; h5 class =“card-title”&gt;
&lt; button type =“button”class =“btn btn-success”data-toggle =“modal”data -target =“#addEvent”&gt; Aggiungi Work&lt; / button&gt;
&lt; button type =“button”class =“btn btn-success”data-toggle =“modal”data-target =“#showCalendar”&gt; Mostra Calendario&lt; / button&gt;
&lt; / h5&gt;
&lt; / div&gt;
</ code> </ pre>

现在使用JS或其他新手方法,如果有可能的话 当我点击div中按钮下面的第一个按钮时,例如插入事件表格就像这样</ p>

 &lt; div class =“modal fade”id =“modalEvento”  tableindex = “ -  1”  role =“dialog”aria-labelledby =“myModalLabel”&gt; 
&lt; div class =“box-body”&gt;
&lt; div class =“form-group”&gt;
&lt; label class =“col -sm-2 control-label“&gt; nome:&lt; / label&gt;
&lt; div class =”col-sm-10“&gt;
&lt; input type =”text“class =”form-control“ id =“testoExtra”&gt;
&lt; / div&gt;
&lt; / div&gt;
&lt; div class =“form-group”&gt;
&lt; label class =“col-sm-2 control- label“&gt; Dettagli:&lt; / label&gt;
&lt; div class =”col-sm-10“&gt;
&lt; input type =”text“class =”form-control“id =”dettagli“&gt ;
&lt; / div&gt;
&lt; / div&gt;
&lt; / div&gt;
</ code> </ pre>

当我点击第二个按钮时,比较fullcalendar( 也是默认的)

</ p>

是否可能?
tkhanks很多</ p>

我使用codeigniter,bootstrap和js </ p> \ n </ div>

展开原文

原文

I have this scenario

enter image description here

under a bootstrap menu two button one for show a fullcalendar and one for add an event in calendar

<div class="card-body">
  <h5 class="card-title">
      <button type="button" class="btn btn-success" data-toggle="modal" data-target="#addEvent">Aggiungi Work</button>
      <button type="button" class="btn btn-success" data-toggle="modal" data-target="#showCalendar">Mostra Calendario</button>
  </h5>
</div>

now in JS or in other newbie method i want if is possible when i click on the first button appear under the button in a div for example the insert event form like this

<div class="modal fade" id="modalEvento" tableindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="box-body">
    <div class="form-group">
        <label class="col-sm-2 control-label">nome:</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="testoExtra">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">Dettagli:</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="dettagli">
        </div>
    </div>
</div>

and when i click on the second button compare the fullcalendar (also the default)

is it possible ? thanks a lot

i use codeigniter, bootstrap and js

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐