Why jquery validation is not working on appended elements?
问题 I have a form and I want to add new elements as you can see in this fiddle I used append $('#cvfields').append(campos); to add this elements but the jquery validation plugin started to giving me problems. I found this in some answers related whith this question $('#titulo_'+campo).rules('add', {'required': true}); $('#tipo_'+campo).rules('add', {'required': true}); But when I added .rules code I received this error Uncaught TypeError: Cannot read property 'form' of undefined $.extend.rules