Passing tags data through via POST

170 Views Asked by At

I am using https://github.com/bootstrap-tagsinput/bootstrap-tagsinput which allows me to convert a select or input to a be a tags field. Inside of a Form, and when submitted, the data is NULL.

Grabbing the .val() or running $("input").tagsinput('items') displays the contents however it is not send via POST request. I have a number of these inputs in my form.

EDIT: For example, I have my select here: <select multiple data-role="tagsinput" name="job_area" id="job_area" placeholder="Select a job area or type to insert another." class="form-control"></select> and that is all there is to it. That is within a <form method="POST"> with an action to the server (I'm using Laravel).

What would be the best way to ensure the data is send along with the form request?

Any help is appreciated.

0

There are 0 best solutions below