I have a group of inputs and I want to get the value of each one in array form or in any way that you will suggest. I am not very good at arrays.
$(elemnt).each(
@mandip-darji's answer is totally acceptable and working. I did little enhancement to it. So in my case, if you want a value of only one input field.
You can do something like below.
let keyWord = null;
$('.searchinventory_input').each(function(){
if(this.value){
keyWord = this.value;
return false;
}
});