forummaster123
New Member
I need to get the value of the previous and next input by click on \[code\]a\[/code\] element styling as a button...Example code:\[code\]<ul> <li> <input type="text"> </li></ul><ul> <li class="li-inline"> <a class="btn" href="http://stackoverflow.com/questions/13746753/#"> <i class=""></i> </a> </li></ul><ul> <li> <input type="text"> </li></ul>\[/code\]I try with \[code\]next()\[/code\] and \[code\]prev()\[/code\] jquery methods but have not achieved the expected results. \[code\]$("a").click(function() { $(this).next(":input");});\[/code\]