Laravel 4 - Assign OnChange to Form::select

Viewed 20680

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.

3 Answers

Right way is here:

{!! Form::select('id' => 'some-id', null, ['onchange'=>"alert(this.value);" ,'required']) !!}
Related