Jump to:

23471 Posts in 18937 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: 431 Views
  • Scott Farmer
    Community Member
    35 Posts

    AddExtraClass on select dropdown field only Link to this post


    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(
    'Pick Up'

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

    Tried ExtraClass, but this didn't work.


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.