KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How to select a div using it's ID but with a widcard? If the DIV's ID is statusMessage_1098 , I would like to select it in some way like document.getElementById('statusMessage_*') . This is because until the page is generated, I don't know the suffix of the ID and only one such ID will be present in a page. Is this possible? Thanks for any help.
Tags (comma-separated)
Save Edits
Cancel