значит такая проблема, есть 2 инпута, если их обоих заполнить и нажать на кнопку вызывающую модальное окно - то страница просто перезагрузится, никто не знает решения данной проблемы?
вот кнопка
<button id="signUpBtn" class="btn btn-info registration" data-toggle="modal" data-target="#modalReg"><i class="fa fa-plus fa-fw"></i>Sign Up</button>
вот эти 2 инпута
<form class="form">
<div class="form-group">
<input type="text" class="form-control" id="logName" placeholder="Name" required/>
</div>
<div class="form-group">
<input type="password" class="form-control" id="logPass" placeholder="Password" required/>
</div>
</form>
вот модалка
<div class="registration">
<div class="modal fade" id="modalReg" tabindex="-1" role="dialog" aria-labelledby="modalRegLabel">
<div class="modal-dialog container" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h3 class="modal-title" id="modalRegLabel">Please, enter your credentials</h3>
</div>
<div class="modal-body">
<form action="#" method="post" id="newregistration" role="form">
<div class="row delegation">
<div class="form-group col-lg-4">
<input name="user" type="text" id="newName" class="form-control" placeholder="login" value="" required/>
</div>
<div class="form-group col-lg-4">
<input name="pwdLogin" type="password" id="newPass" class="form-control" value="" placeholder="Password" required/>
</div>
</div>
<div class="row delegation">
<div class="form-group col-lg-4">
<input name="Submit" type="button" id="regBtn" class="btn btn-info form-control" value="Sign Up"/>
</div>
</div>
<p class="validRegistration hidden">Login already taken</p>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
вот скрипт
$('#modalReg').on('shown.bs.modal', function () {});