Issues since updating to jquery 1.5

Issues since updating to jquery 1.5

Ever since updating from 1.4 to 1.5, I've been getting the following error.

  1. uncaught exception: Syntax error, unrecognized expression: [href=/topics/ps3]
This is the code that's throwing the error.

  1. reloadLink = $("#Nav a[href=" + topic_path + "]");
From reading on the changes of 1.5, it now sounds like the attribute values has to be wrapped in quotes, however, my attribue value is derived from the following.

  1. topic_path = '/topics/' + window.location.hash.replace(/^#/, '');
So wrapping topic_path with quotes give me the string name of "topic_path", not what it really equates to, like "/topics/ps3"

Any help would be greatly appreciated.