嗨我正在使用以下代码通过jQuery应用css的多个属性。我的代码是这个jQuery代码有什么问题
$("div:contains('Awais')").css({text-decoration : 'underline', cursor : 'pointer'});
我得到JavaScript错误
missing : after property id
$("div:contains(John)").css({text-dec...: 'underline', cursor : 'pointer'});
但是当我remoce text-decoration
属性错误消失。什么是错的代码
重新标记了这个问题。它与jQuery或选择器无关。 –
@Felix Kling Thanks dude –