I'm having trouble calling two .js files in my html page, because the two do not work together, just separate, I believe it's a conflict problem, custom alert on my site, but when I paste the code on the site the captcha does not work, it loads infinitely like this:
Belowisthepathofconflicting.jsfiles:
Iwanttoaddthecodebelow:
<!DOCTYPEhtml><html><linkrel="stylesheet" href="//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script><scriptsrc="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script>
<div id="dialog-confirm" title="Excluir pedido?"></div>
<button id="btn" onclick="confirmar();">Clica</button>
<script type="text/javascript">
function funcao_b() {
alert('funcao B');
}
function confirmar() {
$( "#dialog-confirm" ).dialog({
resizable: false,
height: "auto",
width: 400,
modal: true,
buttons: {
"Excluir pedido": function() {
$( this ).dialog( "close" );
funcao_b();
},
'Cancelar': function() {
$( this ).dialog( "close" );
console.log('cancelado');
}
}
});
}
</script>
</html>
In the source code of this site:
How do I eliminate this conflict?