Question

I was trying to create a password field in the form in Laravel Blade templates but the output doesn't let me enter anything and it's not showing any placeholder either. The code doesn't cause any error.

Form:

{{ Form::open(array('class'=> 'forming')) }}
     {{ Form::text('username','Username',array('class' => 'insi')); }}<br>
     {{ Form::password('password',array('placeholder'=>'Password','class' => 'insi')); }}
{{ Form::close() }}

and the output is like that. Any help?

http://i1289.photobucket.com/albums/b503/darulehsan031/dddff_zps4f4ad69e.png

Second Input form is for password.

Était-ce utile?

La solution

We are not seeing your generated HTML, but usually those problems are related to your HTML. For instance, you are using a CSS class 'insi', which may not letting you see the password characters.

To do a test remove/disable your CSS files from your main HTML and it probably will work fine.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top