Using jQuery to target a specific link in the navigation -


i working dynamic navigation , need able target 1 specific link open in new window.

i need jquery this.

for example able target navigation item of education has link of http://www.foo.com/education , have open in new window when click on it.

would appreciate assistance.

thanks.

try:

$("a[href='http://www.foo.com/education']").attr('target', '_blank'); 

Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -