-1
<head>
<title>WEB VIDEO AULAS</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
</head>
<body>
<br/> <br/> <br/> <br/> <br/>
<div class="container">
<div class="row">
<div class="col-lg-3">
<div class="input-group">
<input type="text" class="form-control" size="35" id="palavra" placeholder="Digite seu nome ou sua matrícula.." required />
<span class="input-group-btn">
<button class="btn btn-blue" id="buscar" type="button">Buscar</button>
</span>
</div>
</div>
</div>
<div id="dados"></div>
</div>
<link rel="stylesheet" href="/SLP/css/css/CDTpag1.css">
<script>
function buscar(palavra)
{
var page = "/SLP/css/css/busca.php";
$.ajax
({
type: 'POST',
dataType: 'html',
url: page,
beforeSend: function () {
$("#dados").html("Carregando...");
},
data: {palavra: palavra},
success: function (msg)
{
$("#dados").html(msg);
}
});
}
$('#buscar').click(function () {
buscar($("#palavra").val())
});
</script>
</body>
Blank would be just spaces or blank would be no value inserted? Your question has no description to help you better understand the problem. I suggest you make an edit.
– Wallace Maxters
possible duplicate https://answall.com/questions/193371/comorvalidar-campos-em-branco-em-html/193574#193574
– user60252