I have set of buttons like this:
<button id="grid1_createBtn">Create</button>
<button id="grid1_updateBtn">Update</button>
<button id="grid2_createBtn">Create</button>
...
These button does not have any class, so I need to select them via their ID. The "grid" part of id is static and same for all buttons. I found this answer, but I don't want to use $("[id^=grid]")
, because may be some other other element with starting id "grid" exist. Can anyone help me?