Cara Membuat Menu ActiveDibuat
Login Terakhir
7 Hari lalu,
Telah Dilihat 1585 Kali
| |
Sultan Account |
|
|
Ahmad A Azari
Mengatakan :
Sultan Account
Assalamualaikum, Gimana cara membuat menu active dan codingnya kira2 seperti gimana ya? Mohon bantuannya Ada 1 File Kiriman : 1. 2017-02-03_172137.png (39 KB) |
|
| PHPMU.COM Support commented on 09 Feb 2017 08:28:23 Sultan Account |
|
|
|
Assalam, coba dengan ini mas :
<script type="text/javascript">
$(function(){
var url = window.location.href;
$(".container a").each(function() {
if(url == (this.href)) {
$(this).closest("li").addClass("active");
}
});
});
</script> |
|