sorting - JQuery Help Needed for ID order given N Rows -
I am trying to add a function when a user clicks on "remove",
<-
I am able to update the number line but it is currently up to date for all the rows, even if there is nothing. Can anyone show me how to do this for the populated rows only? For example, when there is no data in the given row, stop it
-
Some arguments for updating all the IDs for any row in my argument is wrong I'm trying to change the number at the end of the ID name (for example, "numRow11", with the same line number)
$ ('# files_list tr'). Each (function (index) {// update number order $ (this) .find ("td: first"). Text (index + 1tr ('id', $ (this) .attr ('id') Replace ($ (This) .attr ('id') match (/ [(index% 2 == 0) $ (this) .removeClass (). AddClass ('even'); and $ (this) .removeClass () AddClass ('weird');});
Pause when a line doesn 'is the data.
docs.jquery.com:
Returning' false ' Fully loop through all the elements from within the function (This is like 'break' with normal loop).
Comments
Post a Comment