我有这个html代码:
[other divs] content [other divs with data-day attribute] content [other divs]
我想选择mydiv中具有data-day属性的最后一个元素。我怎样才能做到这一点?
#mydiv div[data-day]:last-child
我试过了,但是没有用。