Good, I have looked for possible solutions but with them I can not solve the problem.
I try to open a modal window with Bootstrap but that does not open when I press the button.
<form class="form-inline">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#login">Login</button>
<!--modal -->
<!-- Modal -->
<div id="login" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Login</h4>
</div>
<div class="modal-body">
<p>Some text in the modal.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!--modal -->
<script>
$("#login").dialog({
modal: true,
buttons: {
Ok: function() {
$( this ).dialog( "close" );
}
}
});
</script>
<button type="subtmit" class="btn btn-success">Registrarse</button>
</form>
I've already tried putting the jquery call before the bootstrap js
<script serc="https://code.jquery.com/jquery-3.1.0.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
But it does not work that way either