Advertisement
Guest User

Untitled

a guest
Mar 16th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. <div class="modal fade" id="LoginModal" tabindex="-1" role="dialog" aria-labelledby="ModalTitle" aria-hidden="true">
  2. <div class="modal-dialog">
  3. <div class="modal-content">
  4. <div class="modal-header">
  5. <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
  6. &times;</button>
  7. <h4 class="modal-title" id="ModalTitle">Login with your Syncade credentials</h4>
  8. </div>
  9. <div class="modal-body">
  10. <span id="userNamSpan"></span>
  11. <asp:TextBox ID="txtUsername" runat="server" CssClass="form-control" placeholder="Enter Username" AutoCompleteType="Disabled" />
  12. <br />
  13. <span id="passwordSpan"></span>
  14. <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" CssClass="form-control" placeholder="Enter Password" AutoCompleteType="Disabled" />
  15.  
  16.  
  17. </div>
  18. <div class="modal-footer">
  19. <asp:Button ID="btnLogin" Text="Login" runat="server" OnClientClick="ExportToZip;" Class="btn btn-primary" />
  20. <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  21.  
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26.  
  27. <script type="text/javascript">
  28. $(document).ready(function () {
  29. $("#btnShowLogin").click(function () {
  30. $('#LoginModal').modal('show');
  31. });
  32.  
  33. //validate form inputs
  34. $("#btnLogin").click(function (e) {
  35. if ($("#txtUsername").val() == "")
  36. $("#userNamSpan").text("Enter Username:");
  37. else
  38. $("#userNamSpan").text("");
  39.  
  40. if ($("#txtPassword").val() == "")
  41. $("#passwordSpan").text("Enter Password:");
  42. else
  43. $("#passwordSpan").text("");
  44.  
  45. });
  46. });
  47. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement