I'm using a Laravel form attribute as shown below:
{!!
Form::select('industry', $industries, array('class' =>
'form-control', 'style'=>' resize:vertical; ',
'id' => 'industryId'))
!!}
The problem is I'm unable to get id 'indusrtyId'. The HTML output is:
<select name="industry">
<option value="1">Accounting</option>
<option value="2">Airlines/Aviation</option>
</select>
Try to add null
as third parameter:
{!! Form::select('industry', $industries, null, array('class' => 'form-control', 'style'=>' resize:vertical; ', 'id' => 'industryId')) !!}
Third parameter is used to set selected
element. Array with HTML parameters should be fourth parameter in Form::select
clause.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With