JQuery Sprawdź, czy pole istnieje po imieniu
if (! $('input[name="inputName"]').length) {
//Your code when inputName does not exist!
}
Ivan The Terrible
if (! $('input[name="inputName"]').length) {
//Your code when inputName does not exist!
}