jquery - Write variable into name attribute of the anchor selector -


how write variable value of name attribute of anchor selector?

$("a[name=$hash]").addclass('open'); 

if write code in php page can write following

$("a[name=<?php echo $hash; ?>]").addclass('open'); 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -