$.slugify("jquery slugify"); $('#slug-target').slugify('#slug-source'); $("#slug-target").slugify("#slug-source", { separator: '_' });