how to get the all input element id value using jquery

JavaScript
BY LOVE
This function will give you all the ID values of input element 

$('input').each(function (i, item)
            {
                alert(item.id);
            });
Source

Also in JavaScript: