Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Question about Form::select
soseki
September 2021
Hello,
I would like to make following select form with additional data.
<select>
<option value="title1" data-text="ABCDEDG....">SELECT1</option>
<option value="title2" data-text="HJKNPQED....">SELECT1</option>
</select>
Is that possilbe to do using Form::select?
Best regards,
Harro
September 2021
Accepted Answer
No,
It expects a key->value array, with provides the value and the display text of the option tag.
I've looked at the code, but haven't seen a way to easily implement this, without seriously breaking the API.
soseki
September 2021
Hello Harro,
Thanks for your comment.
That's what I expect.
So, in this case, I had better generate HTML by myself with strip_tags.
Thank you
:)
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
September 2021
soseki
September 2021