ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Close Bootstrap Modal Popup inside JavaScript function<p>Hi <a class="username" rel="mukesh1">mukesh1</a>,</p> <p>Refer below article.</p> <h1 class="header"><a title="Dismiss (Close) Bootstrap Modal Popup programmatically'a" href="https://www.aspsnippets.com/Articles/Dismiss-Close-Bootstrap-Modal-Popup-programmatically.aspx">Dismiss (Close) Bootstrap Modal Popup programmatically</a></h1> <p>Check this example. Now please take its reference and correct your code.</p> <p><strong><span style="text-decoration: underline;">HTML</span></strong></p> <div class="demo_block"> <pre class="brush: html">&lt;!-- Bootstrap --&gt; &lt;script type=&#34;text/javascript&#34; src=&#39;https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.3.min.js&#39;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34; src=&#39;https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/js/bootstrap.min.js&#39;&gt;&lt;/script&gt; &lt;link rel=&#34;stylesheet&#34; href=&#39;https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.3/css/bootstrap.min.css&#39; media=&#34;screen&#34; /&gt; &lt;!-- Bootstrap --&gt; &lt;center&gt; &lt;button type=&#34;button&#34; class=&#34;btn btn-info btn-lg&#34; data-toggle=&#34;modal&#34; data-target=&#34;#MyPopup&#34;&gt; Open Modal&lt;/button&gt; &lt;/center&gt; &lt;!-- Modal Popup --&gt; &lt;div id=&#34;MyPopup&#34; class=&#34;modal fade&#34; role=&#34;dialog&#34;&gt; &lt;div class=&#34;modal-dialog&#34;&gt; &lt;!-- Modal content--&gt; &lt;div class=&#34;modal-content&#34;&gt; &lt;div class=&#34;modal-header&#34;&gt; &lt;button type=&#34;button&#34; class=&#34;close&#34; onclick=&#34;CloseModal()&#34;&gt; &amp;times;&lt;/button&gt; &lt;h4 class=&#34;modal-title&#34;&gt; Greetings &lt;/h4&gt; &lt;/div&gt; &lt;div class=&#34;modal-body&#34;&gt; Welcome to ASPSnippets.com &lt;/div&gt; &lt;div class=&#34;modal-footer&#34;&gt; &lt;input type=&#34;button&#34; id=&#34;btnClosePopup&#34; value=&#34;Close&#34; class=&#34;btn btn-danger&#34; onclick=&#34;CloseModal()&#34; /&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- Modal Popup --&gt; &lt;script type=&#34;text/javascript&#34;&gt; function CloseModal() { $(&#34;#MyPopup&#34;).modal(&#34;hide&#34;); } &lt;/script&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/125351/Close-Bootstrap-Modal-Popup-inside-JavaScript-function/https://www.aspforums.net:443/Threads/125351/Close-Bootstrap-Modal-Popup-inside-JavaScript-function/Wed, 19 Sep 2018 05:18:21 GMT