Wednesday, March 8, 2017

Laravel & JS: How to get input variable with JS before submit?

Hi i have this variable:

{!! Form::hidden('providers_id[]',$providers_id[$i]]) !!}

i dynamically add this one every time that i press 'Add provider' button. How can i get the providers_id[] array with JS to do some operations before send to my controller?



via maudev

Advertisement