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

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -