I have a table where each of your td elements have an id in this format:
<td id="random123random"></td>
where "random" can be anything (albeit of the same length) and the only thing that certain ids have in common is the number "123" in the middle.
What I need is to select all the td that contain that 123 of the medium to change it to a "456".
I suppose that in JQuery there should be a way to create a selector that does what I want, with the aim of having something like:
(a modo demostrativo) nueva = "idQueConserveEltextoDeLosExtremosperoCambie123por456"
$("idQueContenga123enElmedio").attr("id", nueva);
So now that I see it, it's difficult for me to fix the new ids, because when they are reassigned to each td, they must keep the random text of the extremes and only change the number "123" in the middle for a "456" .
Thanks for your time.
EDIT
Sorry if I expressed myself wrong, but when I said "select all the ids that ..." I was not referring to any type of database query, they are simply the ids of the table that I mentioned at the beginning, they are ids that they are being worked with jquery only in the frontend.