Support the ongoing development of Laravel.io →
posted 10 years ago
Forms

I am using the pick a date script in my laravel site. Everything is working correctly; however, in order for it to pull my stored date I need to use data-value instead of value in the form. I am unsure of the best way to get this to work.

My current form code is:

{{ Form::text('membership_start', null, array('type' => 'text', 'class' => 'form-control datepicker','placeholder' => 'Pick the membership start date', 'id' => 'sdate')) }}

Thanks for any help that can be provided

Last updated 2 years ago.
0

You can use

{{ Form::text('membership_start', null, array('type' => 'text', 'class' => 'form-control datepicker','placeholder' => 'Pick the membership start date','data-value'=>$value, 'id' => 'sdate')) }}
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mbsmi mbsmi Joined 21 Nov 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.