Skip to content

Commit 2dcaed3

Browse files
blizzzAurelioDeRosa
authored andcommitted
Selectors page: Escape @ signs in ID
Closes jquerygh-737
1 parent a027005 commit 2dcaed3

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)