Match URL and add a new class in URL or Parents DIV

Okay, I am going to show you How cloud we do it ?? Let’s start

  1. Firstly you need to add a jQuery in your HTML file or according to your working file. Click here 
  2. You can add the jQuery file in before your body tag end.
  3. Sample HTML
  4. Now add this code
  5. Above the jQuery code only add the active class in your URL . But if you need to add class in parent div then you must add this code

    suppose we want to the active class inside menu class. For this reason, I added menu class in parents .
  6. In this way, you can add an active class in your menu or other div .

    That’s all . Enjoy Happy coding .

Copy file from live server to live server by PHP

Hello Guys , Let’s copy zip file from live server to live server or local server such as XAMPP or other local server. It is very easy to copy zip file from live server by PHP copy function.