var dialogDiv = $('<div style="display:none;"></div>').appendTo('body');
$.validator.unobtrusive.parse($('form', dialogDiv));
“$(‘form’, dialogDiv)”, I know this should be jquery selector . but if this is multiple selector. should we move the dialogDiv inside the quote? “$(‘form, dialogDiv’)”
The second parameter of jQuery’s selector is
context$('form', dialogDiv)is the same as$(dialogDiv).find('form');