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
statusMessage_1098
document
Update for 2020:
Using jQuery you can do this
$("div[id^=statusMessage_]")
**Omit the single quotes.
I also often add a variable to the end:
$("div[id^=statusMessage_" + id + "]")