Gibt es einen Platzhalter für Bezeichner (ID)?

Wenn ich eine unbekannte Anzahl von Bezeichnern habe, die ein bestimmtes Benennungsschema teilen, gibt es eine Möglichkeit, sie alle mit jQuery auf einmal zu erfassen?

// These are the IDs I'd like to select
#instance1
#instance2
#instance3
#instance4

// What do I need to add or how do I need to modify this jQuery selector in order to select all the IDs above?
("#instanceWILDCARD").click(function(){}

Antworten auf die Frage(18)

Ihre Antwort auf die Frage