The values should be numeric only, between 0 and the total quantity of the table rows (tr) inside the table.
Right now if you enter a string, or a value outside of the range above, it will break with the following error:
TypeError: Cannot read property 'remove' of undefined