Disable as option a placeholder in laravel 5.4

-1

If I have a select with:

{!!Form::label('tipoUsuario','(*)Rol',['class'=>'control-label'])!!} 
{!!Form::select('tipoUsuario',$tipoUsuario,null,['id'=>'tipoUsuario','class'=>'form-control','placeholder'=>'Seleccione Usuario','tabindex'=>'8'])!!}

How do I make the "placeholder" not appear to me as another option in the list of "type of users", or that I simply can not choose it?

    
asked by SMarianelaM 19.03.2018 в 22:54
source

1 answer

1

You should do it with the normal HTML syntax, not the LaravelCollective syntax

Here's the example

<html>
 <select name="opciones">
   <option value="" hidden selected>Seleccione</option>
   <option value="1">Uno</option>
   <option value="2">Dos</option>
 </select>
</html>
    
answered by 21.03.2018 / 13:52
source