Stop Removing span and styles after click of cliked button
-
Hi,
i wrapped the shrotcode into a button tag because im using the plugin to count a hit on a button…<button class="dot-irecommendthis btn btn-default btn-sm" id="dot-irecommendthis-<?php echo $post->ID; ?>" href="#"> <?php if( function_exists('dot_irecommendthis') ) dot_irecommendthis();?> </button>
it works fine. But when i click on a already clicked button (i using the saved IP) wich has already added the “active” tag – it removes not only the a tag it also removes the spans of the recommend button.
This is what stays left:
<button class="dot-irecommendthis btn btn-default btn-sm active" href="#close" title="You already recommended this">1</button>
Any way to avoid this behavior? Im using a css style after and before each span to display one ICON before the count number and one ICON after the count number – but after the click it removes the spans – and with them the icons…
This would be awesome if you can tell me wich part of the plugin i should change to achieve my goal.
Thank you so much for your help
- The topic ‘Stop Removing span and styles after click of cliked button’ is closed to new replies.