SyntaxFix
Write A Post
Hire A Developer
Questions
Add an input id to the element and do something like that:
document.getElementById('inputId').value.split(/[\\$]/).pop()