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.Enable Button on another Button Click and open Bootstrap Modal Popup using jQuery in ASP.Net<p>Hey <a class="username" rel="v@run"> v@run</a>,</p> <p>Please refer below sample.</p> <p><span style="text-decoration: underline;"><strong>HTML</strong></span></p> <pre class="brush: html">&lt;script type=&#34;text/javascript&#34; src=&#34;http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js&#34;&gt;&lt;/script&gt; &lt;link rel=&#34;stylesheet&#34; href=&#34;http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css&#34; /&gt; &lt;script type=&#34;text/javascript&#34;&gt; $(document).ready(function () { $(&#34;#myBtn&#34;).click(function () { $(&#34;#myModal&#34;).modal({ show: true }); }); $(&#34;#Button1&#34;).click(function () { $(&#34;#myBtn&#34;).show(); }); $(&#34;#Button2&#34;).click(function () { $(&#34;#myBtn&#34;).show(); }); }); &lt;/script&gt; &lt;div class=&#34;container&#34;&gt; &lt;!-- Trigger the modal with a button --&gt; &lt;button type=&#34;button&#34; class=&#34;btn btn-info btn-lg&#34; id=&#34;myBtn&#34; style=&#34;display: none&#34;&gt; Modal 3&lt;/button&gt; &lt;!-- Modal --&gt; &lt;div class=&#34;modal fade&#34; id=&#34;myModal&#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; data-dismiss=&#34;modal&#34;&gt; &amp;times;&lt;/button&gt; &lt;h4 class=&#34;modal-title&#34;&gt; Modal Header&lt;/h4&gt; &lt;/div&gt; &lt;div class=&#34;modal-body&#34;&gt; &lt;p&gt; Some text in the modal 3.&lt;/p&gt; &lt;/div&gt; &lt;div class=&#34;modal-footer&#34;&gt; &lt;button type=&#34;button&#34; class=&#34;btn btn-default&#34; data-dismiss=&#34;modal&#34;&gt; Close&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;button type=&#34;button&#34; class=&#34;btn btn-info btn-lg&#34; id=&#34;Button1&#34;&gt; Modal 1&lt;/button&gt; &lt;!-- Modal --&gt; &lt;div class=&#34;modal fade&#34; id=&#34;Div1&#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; data-dismiss=&#34;modal&#34;&gt; &amp;times;&lt;/button&gt; &lt;h4 class=&#34;modal-title&#34;&gt; Modal Header&lt;/h4&gt; &lt;/div&gt; &lt;div class=&#34;modal-body&#34;&gt; &lt;p&gt; Some text in the modal 1.&lt;/p&gt; &lt;/div&gt; &lt;div class=&#34;modal-footer&#34;&gt; &lt;button type=&#34;button&#34; class=&#34;btn btn-default&#34; data-dismiss=&#34;modal&#34;&gt; Close&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;button type=&#34;button&#34; class=&#34;btn btn-info btn-lg&#34; id=&#34;Button2&#34;&gt; Modal 2&lt;/button&gt;&lt;br /&gt; &lt;!-- Modal --&gt; &lt;div class=&#34;modal fade&#34; id=&#34;Div2&#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; data-dismiss=&#34;modal&#34;&gt; &amp;times;&lt;/button&gt; &lt;h4 class=&#34;modal-title&#34;&gt; Modal Header&lt;/h4&gt; &lt;/div&gt; &lt;div class=&#34;modal-body&#34;&gt; &lt;p&gt; Some text in the modal 2.&lt;/p&gt; &lt;/div&gt; &lt;div class=&#34;modal-footer&#34;&gt; &lt;button type=&#34;button&#34; class=&#34;btn btn-default&#34; data-dismiss=&#34;modal&#34;&gt; Close&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;</pre> <p><span style="text-decoration: underline;"><strong>Screenshot</strong></span></p> <p><img src="https://imgur.com/r7CriaD.gif" alt="" width="336" height="259" /></p>https://www.aspforums.net:443/Threads/199367/Enable-Button-on-another-Button-Click-and-open-Bootstrap-Modal-Popup-using-jQuery-in-ASPNet/https://www.aspforums.net:443/Threads/199367/Enable-Button-on-another-Button-Click-and-open-Bootstrap-Modal-Popup-using-jQuery-in-ASPNet/Fri, 14 Dec 2018 03:53:30 GMT