Flexible Dummy Text Generator With jQuery - Lorem

File Size: 4.08 KB
Views Total: 906
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Flexible Dummy Text Generator With jQuery - Lorem

Just another jQuery based Dummy Text (lorem ipsum) generator used for creating random Latin placeholder text for web or typography.

How to use it:

1. Download and place the core JavaScript file lorem.js after jQuery library.

<script src="//code.jquery.com/jquery.min.js"></script>
<script src="Lorem-master/lorem.js"></script>

2. Call the plugin on the target element and specify the maximum number of characters.

$('p').lorem(50) // 50 words

3. You can also specify the number of characters to be displayed by adding the CSS class 'lorem-*' to your element as follow:

<p class="lorem-50"></p>

4. Not only p element, the plugin supports any html elements and even text fields (input fields and textareas).

$('input').lorem(10);
$('textarea').lorem(50);

5. If there's no length parameter provided, the plugin will randomly generate placeholder text with 3 ~ 50 words inside the target element.

$('p').lorem();

This awesome jQuery plugin is developed by lukejacksonn. For more Advanced Usages, please check the demo page or visit the official website.