There is such a block:
<div id="key-<?=$key["id"]; ?>"> ... </div> When you click on the button. which is in the middle of the code. This block is removed. (There is a data-id that I take with the help of attr - $('#key-${id}').remove(); ). After deleting, I want to know if there are any more such blocks with a similar id . I think something to do through the regular season. I think something like this:
if ($("*").is('#key-${/^[1-9]{1}[0-9]*/}')) { ... } - but it gives an error
thank
После удаления, хочу узнать есть ли еще такие блоки с подобным idI did not understand, do you have several elements with the sameidattributes on the page? - neluzhin