Javascript Checkbutton help

Discussion in 'JavaScript' started by Jon@30442, Mar 22, 2021.

  1. Jon@30442

    Jon@30442 Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #21
    Hi,
    So I'm back on this little cherub and I'm thinking I would like to add the new line at the top of the list now, rather than the bottom.
    The new idx would be 1 and all the others would be increased by one.
    Surely there would be an easy way to do this rather than looping and reassigning all the idx?

    TIA Jon
     
    Jon@30442, Apr 16, 2023 IP