I am having issues with row weight numbers not showing up when chosen is applied so, I am trying to exclude them from the list of selects that chosen is applied to.

So, I have this in the textarea for "Apply Chosen to the following elements"

.page-node select.form-select,.page-node select:not([class*='field_slides-delta-order'])

However selects with the class field_slides-delta-order are still having chosen applied. Am I doing something wrong? Thanks in advance.

Comments

brandy.brown created an issue. See original summary.

brandy.brown’s picture

Status: Active » Closed (fixed)

Figured it out, syntax needs to be .page-node select.form-select:not([class*='field_slides-delta-order'])

jasom’s picture

Where I should put this ".page-node select.form-select:not([class*='field_slides-delta-order'])"? Into css file? JS? Where?

Update:

-- TROUBLE SHOOTING --

  How to exlude a select field from becoming a chosen select.
    - go to the configuration page and add your field using the jquery "not"
      operator to the textarea with the comma seperated values.
      For date fields this could look like: select:not([name*='day'],[name*='year'],[name*='month'])

In my case I pasted string select:not([name*='countrycode']) inside text-area labelled Apply Chosen to the following elements under URL admin/config/user-interface/chosen.

bisonbleu’s picture

thanks @jasom, nice catch.

bassplaya’s picture

Thanks!