I'm using material bootstrap. And trying to remove waves-effect waves-light
classes. But it does not work:
$("nav a").removeClass("waves-effect waves-light");
While if I do add class;
$("nav a").addClass("testing"); // it works!
It works if use setTimeout:
setTimeout(function(){
$("nav a").removeClass("waves-effect waves-light");
},100)
But I'm not sure why is this required? I have added script after mdb script.
<script type='text/javascript' src='http://localhost/site/js/jquery.min.js'></script>
<script type='text/javascript' src='http://localhost/site/js/popper.min.js'></script>
<script type='text/javascript' src='http://localhost/site/js/bootstrap.min.js'></script>
<script type='text/javascript' src='http://localhost/site/js/mdb.min.js'></script>
<script type='text/javascript' src='http://localhost/site/js/custom-script.js'></script>