I just start up to be a web developer. Now I create a dynamic website for the first time. I don\'t know how to set class=\"active\"
to the navigation menu.
Here is
Try this one. I think no need of javascript or jquery.
If you are using codeigniter then you can use URI Class. Get the menu from url using
$this->uri->segment();
and apply to you code like below
-
"> List Patients