Skip to content

Instantly share code, notes, and snippets.

@paulherron
Created February 4, 2014 10:46
Show Gist options
  • Save paulherron/8801498 to your computer and use it in GitHub Desktop.
Save paulherron/8801498 to your computer and use it in GitHub Desktop.
An example of calling the jQuery Slugular plugin (https://github.com/paulherron/jquery_slugular). It uses a fairly broad selector – I just include this in the layout of my CMS and it works for most forms. It works in various different scenarios, e.g. the form having just a `title` field, or alternatively it having just a `name` field. It also ma…
$(document).ready(function() {
$("input[name$='[title]'],input[name$='name]']").slugular();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment