check if input field exists jquery code example
Example: jquery check if field exist by name
if (! $('input[name="inputName"]').length) {
//Your code when inputName does not exist!
}
if (! $('input[name="inputName"]').length) {
//Your code when inputName does not exist!
}