javascript - jQuery attribute selector based on value with periods in it -
trying:
$("div.docs-right div.api-manager div[ng-model=page.api.examples]").length
this breaks with:
uncaught error: syntax error, unrecognized expression: div.docs-right div.api-manager div[ng-model=page.api.examples]
how select ng-model=page.api.examples
?
try :
$("div.docs-right div.api-manager div[ng-model=\"page.api.examples\"]").length
Comments
Post a Comment