jquery - Select element by class name issue -


i have question regarding jquery selector.

i have element class following

<td class='test color-picker'>cell</td> 

i tried select $('.test color-picker') doesn't seem able select when there space between them. can't change class name because effects many other things. there anyways can go around it? much!

$('.test.color-picker') 

this match element both classes. class='test color-picker' 2 distinct class names, test , color-picker.

your code trying find <color-picker> element contained within element class of test.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -