I am building a form wjere I want to add the usser to add tags in the form.
I have completed the functionality but from the front-end only and things got complex to handle.
I am using Ruby on Rails in backend and html css js jqurey in frontend
So far the user can add the tags in the way I want but I didn't find any way of sending the tags as an array in the form.
Is there any way of sending array with forms in input or in rails forms or something else?
As I said, i don't know how to send array with form so I am converting that array to string to store it in input field and then back to array using split with comma to print it on form.
But user can add , in input and I don't want to Split the string with that comma so thats not the good way of using string!
If you have any tutorial or link where I can find out how to send that in backend then I will be thankful to you...
Thanks
Via Active questions tagged javascript - Stack Overflow https://ift.tt/2FdjaAW
Comments
Post a Comment