Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set autofocus on Laravel input field using Form::text

Tags:

html

laravel

How do I set autofocus on a certain field using the Form?

I have managed to set focus by registering the macro, but is it possible to set it in Form::text?

like image 253
zilijen Avatar asked Sep 24 '13 10:09

zilijen


1 Answers

It is enough just to pass a third parameter in Form::text as array with 'autofocus'=>'autofocus'.

Sorry to bother you guys, maybe someone finds it useful.

like image 190
zilijen Avatar answered Sep 22 '22 19:09

zilijen