Use bracket notation:
virDom['creditId']
virDom['pwdId..']
This applies to any object, and it is particularly useful for non-identifier-safe characters and also for accessing keys that you may not know ahead of time.
More Related Contents:
- Web-scraping JavaScript page with Python
- What is the purpose of wrapping whole Javascript files in anonymous functions like “(function(){ … })()”?
- Generate pdf from HTML in div using Javascript
- Converting HTML string into DOM elements?
- Using jQuery to test if an input has focus
- Access parent URL from iframe
- Bootstrap modal appearing under background
- How might I find the largest number contained in a JavaScript array?
- Changing the key name in an array of objects?
- How to prevent ENTER keypress to submit a web form?
- Removing all script tags from html with JS Regular Expression
- Incorrect result in JavaScript calculation [duplicate]
- How to get size of an element/list in Firebase without get it all?
- How to get a HTML element from a string with jQuery
- Why isn’t this object being passed by reference when assigning something else to it?
- Not class selector in jQuery
- Will async/await block a thread node.js
- When should I use brackets with imports
- Converting large numbers from binary to decimal and back in JavaScript
- Every Object is a function and every function is Object – Which is Correct?
- Redirect automatically when selecting an item from a select drop-down list
- Checking password match while typing
- Get JSON in a Chrome extension
- How can one get the file path of the caller function in node.js?
- Is John Resig’s Javascript inheritance snippet deprecated?
- Directing the user to a child state when they are transitioning to its parent state using UI-Router
- Can’t find serviceWorker in navigator anymore
- Changing the page title with Jquery
- DOM Element Width before Appended to DOM
- Is there thing like pass by value pass by reference in JavaScript?