I have the following code :
$('.TopNotificationIcon span').remove();    
Can I replace .TopNotificationIcon with this i.e only span exists inside this specific class.
This is the structure
<div class="TopNotificationIcon"><span>xxxxx</span></div>
On click of .TopNotificationIcon, span should be removed.
if you have click event for .TopNotificationIcon you can do something like this
$('.TopNotificationIcon').click(function(){
    $('span',this).remove();    
});
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With