Is there a way of assigning an OnChange event to a Form::Select field?
I've managed to get around it at the moment but it's very messy and I'd like to change it so all my ajax requests are within one file...
Anyone else come across this?
Thanks.
Is there a way of assigning an OnChange event to a Form::Select field?
I've managed to get around it at the moment but it's very messy and I'd like to change it so all my ajax requests are within one file...
Anyone else come across this?
Thanks.
Right way is here:
{!! Form::select('id' => 'some-id', null, ['onchange'=>"alert(this.value);" ,'required']) !!}