Search
 
SCRIPT & CODE EXAMPLE
 

PHP

current tab active on page reload in php

$(document).ready(function() {
    if (location.hash) {
        $("a[href='" + location.hash + "']").tab("show");
    }
    $(document.body).on("click", "a[data-toggle='tab']", function(event) {
        location.hash = this.getAttribute("href");
    });
});
$(window).on("popstate", function() {
    var anchor = location.hash || $("a[data-toggle='tab']").first().attr("href");
    $("a[href='" + anchor + "']").tab("show");
});
Comment

PREVIOUS NEXT
Code Example
Php :: laravel ffmpeg color filter effects 
Php :: crypt (PHP 4, PHP 5, PHP 7, PHP 8) crypt — One-way string hashing 
Php :: ci4+ connection code 
Php :: php obtener slug wordpress 
Php :: php deader deny iframe 
Php :: how to react on a html button click in php 
Php :: var_dump-type and value of expresion 
Php :: echo alphabet links 
Php :: get current date epoch php 
Php :: laravel how to call function in same controller 
Php :: php cut after first sentence 
Php :: Number in English Words (Indian format) php 
Php :: laravel | eloquent | db | randomly fetch | query data 
Php :: Calling the JS file via WP PHP 
Php :: laravel collection intersectKey 
Php :: laravel eloquent query with orderBy subquery 
Php :: Yii2 Dynamic Relational, Lazy loading 
Php :: php define() 
Php :: Laravel hasmany withSum() 
Php :: calculate average in eager loading laravel 
Php :: search bar php progress 
Php :: how to count number of rows in sql using php 
Php :: Posting file in Database comes with unwanted quotation marks laravel 
Php :: acf blocks register block with enqueue script 
Php :: what is WP_USE_THEMES 
Php :: show real number and not exponential form php 
Php :: Fibers - PHP 8.1 
Php :: Determine the percentage of the file uploaded to the server using php 
Php :: how to make login and logout to blog with php without database or MySQL 
Php :: Eagar loading,parent child relationship,Sub relationship in laravel 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =