For a lot of good reasons, I've inserted in my wordpress website a custom form, coded manually inside a custom plugin.

There is a simple way to add to raw code of the form a field for adding keywords (like the one this site use for 'tags', 'boxing' every word after a space)?

  • this link can help you in formatting your input as tags..jsbin.com/hehurot/5/edit?html,js,output – Piyush Rawat Oct 5 '17 at 12:22
  • Cool! Thank you! You know, I can't understand what this line is about -> if(txt) $("<span/>",{text:txt.toLowerCase(), insertBefore:this}); It's a strange sintax – Sasha Grievus Oct 6 '17 at 7:51
  • 1
    it wraps the text inside <span></span> and inserts it before the input tag – Piyush Rawat Oct 6 '17 at 7:57
  • never seen this type of syntax. If you convert the reply in a proper answer I could accept it – Sasha Grievus Oct 6 '17 at 8:12

This link can help you in transforming text into tag-style boxes :-http://jsbin.com/hehurot/5/edit?html,js,output

Then you can store them individually as per your use case

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.