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
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')) }}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community