Każdy formularz wejściowy JQuery
$("form#formID :input").each(function(){
var input = $(this); // This is the jquery object of the input, do what you will
});
Ugly Unicorn
$("form#formID :input").each(function(){
var input = $(this); // This is the jquery object of the input, do what you will
});
$("form").submit(function(){ return validateForm($(this)) });
function validateForm(form){
var retVal = true;
var re;
$.each(form.serializeArray(), function(i, field) {
var input = $('input[name='+field.name+']');
field.value = $.trim(field.value);
switch(field.name){
case "name" :
and another cases...
}
})
}
$("div.id_100 select").val("val2").change();
// Selects all input, textarea, select and button elements.
const allInputs = $(":input");