Buscar este blog

sábado, 5 de marzo de 2016

Error window[("validate_" + $(...).attr(...))] is not a function al añadir data-validate a un elemento

Tenemos que tener precaución al poner el elemento data-validate a un atributo input, textarea.....

Debemos elegir de entre los siguientes:

  • isName
  • isGenericName
  • isAddress
  • isPostCode
  • isCityName
  • isMessage
  • isPhoneNumber
  • isDniLite
  • isEmail
  • isPasswd

En el caso de no poner uno de los anteriores obtendremos el error:

window[("validate_" + $(...).attr(...))] is not a function