I have a set of buttons like this:
<button id="grid1_createBtn">Create</button>
<button id="grid1_updateBtn">Update</button>
<button id="grid2_createBtn">Create</button>
...
This button has no class, so I need to select them by their ID. The "grid" part of the identifier is static and the same for all buttons. I found this answer , but I don't want to use $("[id^=grid]")
it because some other element with the initial ID "grid" might exist. Can anyone help me?
hamed
source
to share