var buttons =$('input[type="button"]');
var arr = (buttons).makeArray;
for(i=0;i <= arr.length ; i++ )
{ $('.chat_tabs').append(arr[i]).val() ;}
this is not working , it this the correct way , what else should i do, have seen many questions but not able to co-relate and get my self right, in first line a had extracted the all DOM elements which are button type i want to extract value from all of them and also run a loop to print them all or even if want to compare or do any thing else….main concern is to make them array and extract values while running loop.
here is the fiddle http://jsfiddle.net/d9xQP/2/
have alook at
.eachhere is your code
http://jsfiddle.net/d9xQP/4/