<script type="text/javascript">
$(document).ready(function(){
var str=location.href.toLowerCase();
$("#yourmenuid li a").each(function() {
if (str.indexOf(this.href.toLowerCase()) > -1) {
$("a.active").removeClass("active");
$(this).addClass("active");
}
});
})
</script>
$(document).ready(function(){
var str=location.href.toLowerCase();
$("#yourmenuid li a").each(function() {
if (str.indexOf(this.href.toLowerCase()) > -1) {
$("a.active").removeClass("active");
$(this).addClass("active");
}
});
})
</script>
Bloody fool, There should be a ";" at the end of the code.
ReplyDeleteWhat happen without the semi colon ?
Delete