css - :first-child pseudo selector not targeting element -
i can't head round why first-child selector isn't working.
i've created jsfiddle show code: http://jsfiddle.net/wdtvv/
basically following css rule isn't working:
.form-item-products:first-child { display: none; } does know why? have screwed syntax using pseudo selectors?
thanks guys,
rick
the first child not .form-item-products, rather #product-guide-wrapper, selector won't match.
as slaks has mentioned, there isn't :first selector in css jquery's. given structure, however, should able use #product-guide-wrapper + .form-item-products instead.
Comments
Post a Comment