unique numbers for jquery |
I am creating a hyperlink insert for my codeigniter form that I have
My script creates links like where has a unique number for each link PHP Code: [example][1] My Question is if there like below where number 1 & 3 show if I create a new hyper link it should be able to set the next available number which is 2 and so on. Live demo PHP Code: [example][1] Code: $('#myLink').on('shown.bs.modal', function() {
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
you don't need javascript for this, simply make an auto-increment field, or use https://api.jquery.com/jQuery.uniqueSort/
|
Welcome Guest, Not a member yet? Register Sign In |