jQuery Slug Plugin

授权协议 未知
开发语言
所属分类 jQuery 插件、 其他jQuery插件
软件类型 开源软件
地区 不详
投 递 者 翟凯
操作系统 未知
开源组织
适用人群 未知
 软件概览

The jQuery Slug Plugin is a simple plugin which can be used to generate post slugs based on the content of a text input field.

In a few steps, a regex and the replace() method are used to sanitize the val() of the field that slug() is initialized on, and the sanitized slug is inserted as the value of a hidden input field (you specify the class of the field to insert to), and also inserted into a span so the user can see the post slug. Optionally you can choose to show the input field and hide the span.