The following will find an object or objects based on the value of an attribute.
copy$("table[data-someId='123']").toggle();
$("table[data-someId='123']").toggle();