I have a form DOM element:
form
var virDom = document.getElementsByTagName(\"form\")[0];
virDom has two fields with ID
virDom
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.