1

I need to store the jQuery next() and prev() selectors in a variable like this:

var direction = 'next()';
$('#element').direction.remove();

I tried the above and it's not working. Is it possible to do it?

Michael Samuel
  • 3,820
  • 12
  • 45
  • 85

0 Answers0