tylerhall/Convert String to Slug( PHP). function slug(str) .This filters a string into a "friendly" string for use in URLs. It converts the string to lower case and replaces any non-alphanumeric (and accented) characters with dashes. To reduce the number of decimalsLauren (25.03.2011) Needed to convert string to integer and parseInt did the trick! george (13.08.2010) Ive searched and it doesnt seem to exist something jQuery specific.