javascript - How To Active Bootstrap Tab after Button Click in ASP.NET -


i working in asp.net , use twitter bootstrap plugins. in form use tab. there 2 option in tab. #1 map , #2 address. submit form , save data database when data save want saved data shown in #2 tab (address tab). found many article in stackoverflow related it, not achieve this.

code:-asp

            <div class="map-panel">                 <ul class="nav nav-tabs">                     <li class="active"><a data-toggle="tab" href="#divmap">map</a></li>                     <li><a data-toggle="tab" href="#divaddress">address</a></li>                 </ul>                 <div class="tab-content">                     <div id="divmap" class="tab-pane fade in active">                         <div id="geomap" style="width: 100%; height: 450px;">                             <p>loading please wait...</p>                         </div>                     </div>                     <div id="divaddress" class="tab-pane fade">                         <asp:datalist id="dladdress" runat="server" cellpadding="4" forecolor="#333333" repeatcolumns="1" width="100%">                         </asp:datalist>                     </div>                 </div>             </div> 

code:-javascript

$('#<%= btnsave.clientid %>').click(function () {             $('.nav-tabs > .active').next('li').find('a').trigger('click'); }); 

if use html submit button able active other tab through can't save data database. me.

did yout tried wrap both tabs inside same form? way send data both tabs server side script.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -