solution:
given data:
As per what I understood, you want to modify the original jQuery
library and add some method that can be called on your Array list
to move the elements to and fro (forward and backward).
If this is the case, you can even try adding methods to the Array
prototype in the following syntax:
Array.prototype.<function_name> = function(){
//some code.
};
Here <function_name> can be replaced by moveElements and then
you can go ahead and add the logic to move the elements forward and
backward as per your convinience.
This is the walkthrough of how you can acheive your desired
output.
please give me thumb up
Get Answers For Free
Most questions answered within 1 hours.