-1
<select data-drupal-selector="edit-state" id="edit-state">
 <options value ="Alabama">Alabama</option>
 <options value ="Alabama">Alaska</option>
 .......
 ......

CSS for selector dorpdown

1 Answers1

0

Asking a question should be more specific, like i tried this and gave me this error, so you should show what have you tried.

Use findAll to find all the option from this specific select in a variable then do a loop and check the attributes for what you need.

lauda
  • 4,043
  • 2
  • 12
  • 27