$(document).ready(function () { if ($("#orderFormSubmiter").length) { new OrderFormValidator(); } if ($("#orderFormSubmiter2").length) { new OrderFormValidator(); } });