Since $
is a meta characters, use \\
to escape it.
$("#te\\$t").hide();
To use any of the meta-characters ( such as !”#$%&'()*+,./:;<=>?@[]^`{|}~ ) as a literal part of a name, it must be escaped with with two backslashes: \\.
More Related Contents:
- how to get source of a page
- Slide down button to show text HTML CSS
- CORS issue – No ‘Access-Control-Allow-Origin’ header is present on the requested resource
- How can I use jQuery in Greasemonkey scripts in Google Chrome?
- Download File Using jQuery
- jQuery: outer html() [duplicate]
- Queue ajax requests using jQuery.queue()
- jQuery OR Selector?
- Bootstrap 3 Collapse show state with Chevron icon
- How can I set the value of a DropDownList using jQuery?
- Using jQuery To Get Size of Viewport
- jQuery UI Autocomplete widget search configuration
- Accessing clicked element in angularjs
- event.originalEvent jQuery
- jQuery and TinyMCE: textarea value doesn’t submit
- jQuery click event not working in mobile browsers
- Pass Blob through ajax to generate a file
- jQuery Validate plugin – password check – minimum requirements – Regex
- Mobile site – force landscape only / no auto-rotate
- jQuery select based on text
- The field date must be a date in mvc in chrome [duplicate]
- switch audio source with jquery and HTML5 audio tag
- Return Value from inside of $.ajax() function
- jQuery $(“.class”).click(); – multiple elements, click event once
- Different forms of $(document).ready
- jquery resize listener on a div
- How to create a diagonal line within a table cell?
- Jquery how to bind click event on dynamically created elements?
- jQuery autohide element after 5 seconds
- How do I select the parent form based on which submit button is clicked?