Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Question about Form::select
  • 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,
  • HarroHarro
    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.
  • 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 :)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion