I have a question.
I have kind of this in my app. When I have 0 notifications, it becomes 0.
What I want is to delete the number, so it has only the bell (without number, and without that red background)
My code:
<a href="#" class="m-nav__link m-dropdown__toggle" id="m_topbar_notification_icon">
<span class="m-nav__link-icon">
<span class="m-nav__link-icon-wrapper">
<i class="flaticon-music-2"></i>
</span>
<span class="m-nav__link-badge m-badge m-badge--success " id="notification">
</span>
</span>
</a>
I am trying to do it with JavaScript:
<script>
if(document.getElementById('notification').value() ===0)
{
document.getElementById('notification').style.display='none';
}
</script>
Nothing happens. It still displays the bell with 0.