
prettyComments documentation
Below you can find the complete documentation for prettyComments.
If you are having problems with prettyComments and need support, please come and ask your questions in our forums.
If you got here by mistake, don’t leave! The main prettyComments page can be found here.
If you we’re not looking for prettyComments well too bad, but you can still read my blog here.
How to use
Nothing is easier to use. First include the jQuery library then include the prettyComments javascript in the head of the page(s) where you want to use prettyComments.
jQuery can be download here
<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script> <script src="js/prettyComments.js" type="text/javascript" charset="utf-8"></script>
Then you need to initalize prettyComments.
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('textarea').prettyComments(); }); </script>
If you want prettyComments to be initialized on specific textareas, you can specify which element by using a CSS selector, like so:
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('#textarea1,.classOnTextarea2').prettyComments(); }); </script>
Customization
You can also specify settings for the plugin, those are:
<script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $('#textarea1,.classOnTextarea2').prettyComments({ animate: true/false, animationSpeed: 'slow'/'normal'/'fast', maxHeight: 500 (numeric value) }); }); </script>