bitrix/templates/НАЗВАНИЕ_ШАБЛОНА_САЙТА/components/bitrix/catalog.element/НАЗВАНИЕ_ШАБЛОНА_СТРАНИЦЫ ТОВАРА/template.php
$("form").submit(function(e) {
var ref = $(this).find("[required]");
$(ref).each(function(){
if ( $(this).val() == '' )
{
alert("Required field should not be blank.");
$(this).focus();
e.preventDefault();
return false;
}
}); return true;
});
<script async="" src="/browser-sync/browser-sync-client.js?v=2.23.6"></script>
Why isn’t Browsersync connecting with my project?
99% of the time, it's because your web page doesn't have a body tag. In order for Browsersync to connect properly the body tag must be present in your website (we add a script tag just after it). Alternatively you can provide a custom rule for the snippet using snippetOptions