Answer the question
In order to leave comments, you need to log in
My jquery conflicts with other libraries, how to fix (Bitrix)?
In general, I want to add input masks in the form.reslut.new component template.
To do this, I created a js folder in the body of the template and threw jquery.maskedinput.min.js there. I
connect it to template.php in this way:
CJSCore::Init(array("jquery"));
$APPLICATION->AddHeadString("<script src='".$this->__folder."/js/jquery.maskedinput.min.js'></script>", true);
<script>
$(function()
{
$('input[data-type="phone"]').mask("(999)999 99 99");
});
</script>
$(...).mask is not a function
$.noConfliсt()
, one plugin falls off (jquery.lightboxcustom). He begins to swear at some of his functions, that it is not a function at all. $.noConfliсt(true)
- another plugin falls off (jquery.tabs). var tmp = $.noConflict()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question