I\'m trying to get a div which has \"panel current\" as classname. The problem is the space - how can I select it?
Class names can't have spaces in them. What you have there is two classes:
This div has two classes: panel and current. That's easily selected: $("div.panel.current")... That means select all divs that have class panel and class current. 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
This div has two classes: panel and current. That's easily selected:
$("div.panel.current")...
That means select all divs that have class panel and class current.