Jquery-slug is a project mainly written in JavaScript, based on the MIT license.
jQuery Slug is a powerful plugin that makes it easy to transform strings into slugs.
$('.slug_get').keyup(function() {
slug = $.slug( $(this).val() );
$('.slug_return').val(slug);
});
$("#example-input-field").slug({
'target': $('#slug')
});
$("#example-1 input").slug(function(slug) {
var $this = this;
$this.next().text(slug);
});