I have the following jQuery code:
Working code
$( '.spanspec:gt(49)' ).remove();
This removes all checkboxes in my code with the class spanspec where the index is greater than 49. Works fine.
Non-working code
$( '.spanspec:between(41, 46)' ).remove();
What I would like to achieve is to remove multiple checkboxes that have an index between two values. I have tried the above but this does not work.
Please note that I am familiar with the use of :gt :lt :eq but using these in this instance does deliver the desired result.
Any help, advice or feedback would be appreciated.