Skip to content

Commit 71ca7f3

Browse files
christianrankarthurvr
authored andcommitted
using-jquery-core: make jq() function escape backticks too
Closes jquerygh-557
1 parent 6929c0e commit 71ca7f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

page/using-jquery-core/faq/how-do-i-select-an-element-by-an-id-that-has-characters-used-in-css-notation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The following function takes care of escaping these characters and places a "#"
2525
```
2626
function jq( myid ) {
2727
28-
return "#" + myid.replace( /(:|\.|\[|\])/g, "\\$1" );
28+
return "#" + myid.replace( /(:|\.|\[|\]|,)/g, "\\$1" );
2929
3030
}
3131
```

0 commit comments

Comments
 (0)