Bootstrap Community, frontend Development

I have a simple form using bootstrap. I tried to insert a text using jQuery when user clicks button, but It only displays in few seconds then disappear. Can you help me to fix that ? Here is the code :

<!DOCTYPE html>

<html lang="en">


<title>Bootstrap Example</title>

<meta charset="utf-8">

<link rel="stylesheet" href="">

<script src=""></script>

<script src=""></script>





$('#alert').html('Wrong login. Please try again !');







<div class="container">

<h2>Vertical (basic) form</h2>

<div class="text-danger" id="alert"></div>

<form method="POST">

<div class="form-group">

<label for="email">Email:</label>

<input type="email" class="form-control" id="email" placeholder="Enter email" name="email">


<div class="form-group">

<label for="pwd">Password:</label>

<input type="password" class="form-control" id="pwd" placeholder="Enter password" name="pwd">


<div class="checkbox">

<label><input type="checkbox" name="remember"> Remember me</label>


<button type="submit" class="btn btn-default">Submit</button>





Appreciate your help. Thanks.

bambostar () - 4 months ago - Reply 0