1.2.5 • Published 7 years ago

jquery-slugify v1.2.5

Weekly downloads
146
License
MIT
Repository
github
Last release
7 years ago

Build Status

jQuery Slugify

Just another another (another) url slug creation plugin for jQuery.

Getting Started

You can install the plugin using Bower:

bower install jquery-slugify

You can download the production version or the development version.

The plugin depends on speakingurl.

In your web page:

<script src="jquery.js"></script>
<script src="speakingurl.min.js"></script>
<script src="slugify.min.js"></script>

<input type ="text" value="" id="slug-source" /> <!-- The text to be slugged -->
<input type ="text" value="" id="slug-target" /> <!-- The processed text as slug -->

<script>
jQuery(function($) {
  $.slugify("Ätschi Bätschi"); // "aetschi-baetschi"
  $('#slug-target').slugify('#slug-source'); // Type as you slug

  $("#slug-target").slugify("#slug-source", {
  	separator: '_' // If you want to change separator from hyphen (-) to underscore (_).
  });
});
</script>
1.2.5

7 years ago

1.2.4

8 years ago

1.2.3

8 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.4

9 years ago