How to generate slug from title with Javascript without jQuery

Home Forums Javascript How to generate slug from title with Javascript without jQuery

Tagged: , ,

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1461
    Mofizul
    Keymaster

    Title filed
    <input name="title" type="text" class="form-control" placeholder="Enter title" onload="convertToSlug(this.value)" onkeyup="convertToSlug(this.value)">

    Slug field
    <input name="slug" type="text" class="form-control" id="slug-text" placeholder="web-developer">

    Script
    All are given here: Slug from title with pure JS

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.