Я хочу спросить, есть ли лучший способ в jQuery выбрать несколько ввода текста, а затем проверить, имеет ли какое-либо из них значение. Здесь мой код:
if ($("#reference").val() != "" || $("#pin").val() != "" || $("#fName").val() != "" || $("#mName").val() != "" || $("#datepicker").val() != "") { /*logic goes here */ }