Auto insert username password for developer testing on login page php
Hello everybody,,
all right, follow the step :
all right, follow the step :
make 2 button with 2 diferent ID :
<button type="button" id="admin" class="btn btn-primary">admin</button>
<button type="button" id="user" class="btn btn-primary">user</button>
and then add this javascript on last line on your page:
<script>
$(document).ready(function () {
$("#admin").click(function () {
$("input:text").val("admin"); //username
$("input:password").val("admin"); //password
});
$("#user").click(function () {
$("input:text").val("user"); // username
$("input:password").val("user"); // password
});
});
</script>
Join the conversation