Simply escape the colon with a \\
:
$('#test\\:two');
See the docs: How do I select an element by an ID that has characters used in CSS notation?.
More Related Contents:
- “Thinking in AngularJS” if I have a jQuery background? [closed]
- Managing jQuery plugin dependency in webpack
- Changing the image source using jQuery
- Prevent double submission of forms in jQuery
- how to bypass Access-Control-Allow-Origin?
- Get index of element as child relative to parent
- Mismatched anonymous define() module
- How to set time delay in javascript
- Why can I not define functions in jQuery’s document.ready()?
- How do I do string replace in JavaScript to convert ‘9.61’ to ‘9:61’?
- How to dynamically create ‘@-Keyframe’ CSS animations?
- How to wait until jQuery ajax request finishes in a loop?
- Error: TypeError: $(…).dialog is not a function
- How to detect if the user clicked the “back” button
- How to mute an html5 video player using jQuery
- Better way to prevent browser caching of JavaScript files
- How do I find out how many times a function is called with javascript/jquery?
- Why web browsers don’t have jQuery built in? [duplicate]
- Create array of all integers between two numbers, inclusive, in Javascript/jQuery
- Kendo UI Grid multi level hierarchy (n-levels of hierarchy)
- Upload file to my google drive with Google Apps Script (NO FORM IN GOOGLE)
- Can we use the value of localStorage from other domains?
- how to upload and delete files from dropzone.js
- How do you make images load lazily only when they are in the viewport?
- jQuery DataTables “No Data Available in Table”
- Remove URL parameters without refreshing page
- How to properly unload/destroy a VIDEO element
- How to include jquery.js in another js file?
- Html duplicated ID
- .js.erb VS .js