jquery to check if input field exists or not 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!
}