I wonder if it's possible to create and open a Twitter-Bootstrap alert (.alert) with a custom message inside the script itself, without having to create the custom div outside the script and call it? When clicking the "myInput" button, create and open the alert with a message with the example below:
<input type='text' name='meuInput' id='meuInput'>
<button id='meuBtn' class='btn btn-default'>Continuar</button>
<script>
$(document).ready(function(){
var meuInput = $("#meuInput").val();
$("#meuBtn").on('click',function(){
if(meuInput == "") {
[ chamar um alerta com a mensagem personalizada dentro do script ]
}
});
});
</script>