+2  A: 

You could do something like this:

var inp = $('input');

var index = inp.index(this);
var next = inp[index+1];
var prev = inp[index-1];

Note that prev and next, just like this are not jQuery objects but DOM object now. To make them jQuery objects you need to wrap them in the $() function.

Pim Jager
Worked perfectly! Thank you!
chrismar035
+1  A: 

jQuery has built in support as required by you,

$($('input')[0]).next('input')

next

 $($('input')[0]).prev('input')

previous

Subba Rao