diff --git a/godoc/static/godocs.js b/godoc/static/godocs.js index 34724529..8f9ed259 100644 --- a/godoc/static/godocs.js +++ b/godoc/static/godocs.js @@ -247,7 +247,7 @@ function fixFocus() { function toggleHash() { // Open all of the toggles for a particular hash. var els = $(document.getElementById(window.location.hash.substring(1)), - $("a[name='" + window.location.hash.substring(1) + "']")); + $.find("a[name='" + window.location.hash.substring(1) + "']")); while (els.length) { for (var i = 0; i < els.length; i++) { var el = $(els[i]);