Not sure what you want to do tho but maybe display a simple alert ?
function showAlert(){
$( "#dialog" ).dialog({modal: true});
}
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<body>
<input type="button" value="ClickMe" onClick='showAlert()'>
<div id="dialog" title="" style="display: none;">
<p>Alert box. wrong username password!.</p>
</div>
</body>
3
solved when I pressed the login button without entering username & password, browser’s top left corner display message like this “Invalid Info” [closed]