Skip to content
Creates a URL slug as you type a page title (like Django slugify())
HTML
Branch: master
Clone or download
pmcelhaney Merge pull request #20 from kshlyk/master
russian translit corrected
Latest commit 0beb18e Nov 11, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
bower.json
index.html
jquery.slugify.js
readme.md

readme.md

jQuery Slugify

Update

Please have a look at Madflow's implementation of jQuery Slugify. It's a more mature and active project. In theory, you should be able to drop in and replace the code. Please let us know how it goes.

About this version

A jQuery plugin to create a URL slug as you type a page title (like Django slugify())

Say you have form that looks like this:

<label for="title">Title, e.g. "My Cool Blog Post"</label>
<input type="text" name="title" id="title">
...

<label for="slug">Slug, e.g. "my-cool-blog-post"</label>
<input type="text" name="slug" id="slug">

Use slugify() to automatically fill out the slug field as the user types a title.

$('#slug').slugify('#title');

More docs and live examples at http://patrickmcelhaney.com/jQuery-Slugify-Plugin

You can’t perform that action at this time.