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?
var text = $('#mytextarea').val().split(" ");
您可以使用此插件来强制文本区域中的项目分离
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.