Skip to content

maartenhunink/jQuery-Slugify-Plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Creates a URL slug as you type a page title (like Django slugify())

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published