top of page

Reading Query String / $_GET in JavaScript

  • Writer: سُلَيْمَان بْن دَاوُوْد
    سُلَيْمَان بْن دَاوُوْد
  • Jun 10, 2020
  • 1 min read

var tab = window.location.search;
  if(tab){
  var tabs  = tab.replace('?', '');
  var tabandid = tabs.split('=');
  console.log(tabandid[0]);
  console.log(tabandid[1]);
  jQuery('.'+tabandid[1]+'1').trigger('click');
  }






 
 
 

Recent Posts

See All
Duplicate Category in Wordpress

The following code helps to duplicate the default wordpress category by help of code. // Add Duplicate option for categories in WordPress...

 
 
 
C#.NET and Its Associated Codes

1- Creating an Desktop Application in C#.NET C# ADO.NET & MySQL MAIN C# and MySQL ADO.NET with Crystals Reports Ready Code 2- Handling...

 
 
 

Comments


© 2020 by syednazrulhassan

bottom of page