Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- $("div.bhoechie-tab-menu>div.list-group>a").click(function(e) {
- e.preventDefault();
- $(this).siblings('a.active').removeClass("active");
- $(this).addClass("active");
- var index = $(this).index();
- $("div.bhoechie-tab>div.bhoechie-tab-content").removeClass("active");
- $("div.bhoechie-tab>div.bhoechie-tab-content").eq(index).addClass("active");
- });
- });
- <div class="bhoechie-tab-menu">
- <div class="list-group">
- <a href="#" class="list-group-item active "> TAB1 </a> <a href="#" class="list-group-item "> TAB2 </a> <a href="#" class="list-group-item ">TAB1 </a> <a href="#" class="list-group-item"> TAB1 </a>
- <div>
- <div class="bhoechie-tab">
- <div class="bhoechie-tab-content active">
- <section> </section>
- </div>
- <div class="bhoechie-tab-content">
- <section> </section>
- </div>
- <div class="bhoechie-tab-content">
- <section> </section>
- </div>
- <div class="bhoechie-tab-content">
- <section> </section>
- </div>
- </div>
- function showVehicle(id){
- var container = $("#id_administrator");
- var form = "";
- $.ajax({
- url: "forms/show.php",
- type:'POST',
- data:{"vreg":id},
- async:false,
- }).done(function(data){
- form= data;
- });
- container.html(form);
- }
Add Comment
Please, Sign In to add comment