Open vshetti opened 6 years ago
Hello! Following is my code snippet for adding couple of fields dynamically. I have also added .validator('update'). But it isn't working.
$("#button1Id").click(function(){ $("#divInsideFormId").append('filed1-selectoption, field2-datepicker, field3-textbox'); $("#formId").validator('update'); });
I even tried $("#divInsideFormId").append(...).validator('update'); It doesn't work.
Can anyone suggest what's wrong with my code or if I am missing something?
Hello! Following is my code snippet for adding couple of fields dynamically. I have also added .validator('update'). But it isn't working.
$("#button1Id").click(function(){ $("#divInsideFormId").append('filed1-selectoption, field2-datepicker, field3-textbox'); $("#formId").validator('update');
});
I even tried $("#divInsideFormId").append(...).validator('update'); It doesn't work.
Can anyone suggest what's wrong with my code or if I am missing something?