I have come across the following code:
var userDetailsFields = $(formSelector + " input[type='text'], " + formSelector + " select").map(function(){
return this.id;
});
I was wondering if the jQuery each would be more suitable to achieve the same result from a performance perspective..
AIM: return the value of each input and select inside a form.