matthewb
matthewb

Reputation: 3476

Jquery and formating a textarea for tagging?

I am looking for a way to use a textarea and get the values separated by commas, and place them into the array.

Really I am looking for how to auto format the textarea so when the user types something in it either forces or something a comma break. I want to use autocomplete, but I have no data to check it with since this will be a new user sign up.

What's the best approach?

Upvotes: 0

Views: 922

Answers (2)

Reputation:

you can use this plugin to enforce seperation of item in textarea

Upvotes: 0

andres descalzo
andres descalzo

Reputation: 14967

var text = $('#mytextarea').val().split(" ");

Upvotes: 1

Related Questions