Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
input field's label does not get an id
  • when creating a form using Fieldset, the input field has an id that i can use to access it in javascript for some other purpose. however the field's label has no id. how can i set the label's id while building the Fieldset.
  • anyway guys, i was able to find a solution.

    i am using jquery so i was able to access the label like this.
    $('label[for="foo"]').hide ();

    if not, i will have to loop for each of the labels in the form or build the form in another way.
  • In v1.5. the fieldset will add the 'id' attribute to the label tag.
  • thanks Harro

Howdy, Stranger!

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

In this Discussion