I want to style the cred_generic_field same as the cred_field, refer to the screenshot, how can I style both select field same as the status select field, below is code I make the form
I fixed it by styling the select tag with below style but not sure whether it is the best solution, regarding to the height and padding to the toolset_select2-selection, I have to manually find the value from inspector, is there any better way to calculate the value and all generic select field must be named as span.toolset_select2-selection.toolset_select2-selection--single?
Usually this what is done to find what the exact class of the element is.
I'm not aware of any way to automatically determine what the classes will be. all generic select field must be named as span.toolset_select2-selection.toolset_select2-selection--single?
For this I cannot say yes or no to based on my previous statement. The classes are dynamically generated and may contain variances from one instance to another so the best thing to do is to inspect the page element to find the correct class name.