Js sequence number rearrangement problem

        <ul>
            <li></li>
            <li id="index0"></li>
            <li></li>
            <a onclick="delete()"></a>
        </ul>
    </div>
    <div>
        <ul>
            <li></li>
            <li id="index1"></li>
            <li></li>
            <a onclick="delete()"></a>
        </ul>
    </div>
    <div>
        <ul>
            <li></li>
            <li id="index2"></li>
            <li></li>
            <a onclick="delete()"></a>
        </ul>
    </div>

Click the delete button, it will rearrange the following
the original id is index0, index1, index2, for example, delete the first line and become index0, index1, instead of index1, index2 Please enter the code

Mar.28,2021

assign values to id dynamically with jq. Don't write id dead.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36a3f-2b579.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36a3f-2b579.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?