Jump to:

23493 Posts in 18996 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » AddExtraClass on select dropdown field only

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 434 Views
  • Scott Farmer
    Avatar
    Community Member
    35 Posts

    AddExtraClass on select dropdown field only Link to this post

    Hi,

    I'm wanting to override / replace the default form css class and use jquery UI instead.

    This adds a extra class, but applies extra class to div and select element.

    $PickUpLocation = new DropdownField(
    'PickUpLocation',
    'Pick Up'
    );
    $PickUpLocation->AddExtraClass('newclass');

    I want to only add extra class to the select box only.

    Tried ExtraClass, but this didn't work.

    Thanks
    Scott

    434 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.