I have the following verification code for a text field, but the below field needs to be replaced with the name of the text field that is being created dynamically.
My problem is that it has a square bracket in the name - options[483998]
How can I add this to the code below, since it is obvious that if I do a direct field replacement with options[483998] , it creates the wrong encoding.
jQuery("#product_addtocart_form").validate({ rules: { field: { required: true, range: [100, 2540] } } });
source share