When if we check the checkbox and go somewhere and come-back by using the browser back button, the values are persisting properly in (IE, FF and Chrome). But in IE-Edge check box values are not persisting.
When if we check the checkbox and go somewhere and come-back by using the browser back button, the values are persisting properly in (IE, FF and Chrome). But in IE-Edge check box values are not persisting.
Save the below content as as 1.html and 2.html files.
I want to use the IE-EDGE and even after go next page and come back to the current page still the check box values(checked) should persist.
1.html file.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h2>Vertical (basic) form</h2>
<form action="2.html">
<div class="form-group">
<label for="email">Email:</label>
<input type="email" class="form-control" id="email" placeholder="Enter email" name="email" autocomplete="on">
</div>
<div class="form-group">
<label for="pwd">Password:</label>
<input type="password" class="form-control" id="pwd" placeholder="Enter password" name="pwd">
</div>
<div class="checkbox">
<label><input type="checkbox" class="form-control" id="remember" name="remember" autocomplete="on"> Remember me</label>
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</div>
</body>
</html>
And 2.html file
<html>
<body>Testing browser back button and state of the checkbox value</body>
</html>
Aucun commentaire:
Enregistrer un commentaire