|File Size:||5.63 KB|
|Official Website:||Go to website|
Comments.js is a lightweight jQuery plugin which enables you to get the comments inside the HTML comment tag within your document.
How to use it:
<script src="//code.jquery.com/jquery.min.js"></script> <script src="js/jQuery.comments.js"></script>
2. The plugin supports both single and multi-line html comments.
<!-- Single line comment --> <!-- multi line comments -->
3. Get the text inside the html comment tag.
var myComments = $('#el').comments();
- parseComment: If yo want to parse the comments to get only inside comments or get all the comment including brackets
- separator: If you want to add a separator. Only in multilines comments