Javascript See if Element is Editable and Can Have a Value

Javascript Code Function to See if Input Element can Accept Text or Value which Includes <input type="text", <input type="email", <input type="password" or a DIV Element that is Content Editable divElement.contentEditable

Home Short:

This function checks to see if a certain element can accept text or input which includes the well known input elements of type text, email or password but also includes a check to see if the element is not an input element but has a contentEditable === "true". In other words, if the element can accept user input of any kind.

S
H
A
R
E