This is more of a generic question, please remove it if this is not a correct platform.
My question is what happens if rules are applied to html form multiple time. like every time user clicks on button if rules are applied what will be the impact.
I am pretty sure such things won't happen but in case if we do that will browser go for a memory leak.?
Below is a sample validaiton.
$("#fromValidate").validate({
rules: {
txtName: { required: true }
},
messages: {
txtName: { required: "Please Enter Name." }
},
ignore: []
});
If above rules are called everytime user clicks the button what will be the impact?
Copyright Notice:Content Author:「Manish Makkad」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/38719861/what-happens-if-rules-are-applied-multiple-time-to-a-form