Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. function login()
  2. {
  3. var loginName = $("#US_UName").val();
  4. var loginName = $.trim(loginName);
  5.  
  6. if (loginName == "") {
  7.  
  8. c_alert("Authentication Error","Please enter your username");
  9. $("#US_UName").focus(); // not working
  10. return false;
  11.  
  12. }
  13. }
  14.  
  15. function c_alert(Title,Msg) {
  16. $.confirm({
  17. 'title' : Title,
  18. 'message' : Msg,
  19. 'buttons' : {
  20. 'OK' : {
  21. 'class' : 'blue',
  22. 'action': function(){
  23. return;
  24. }
  25. }
  26. }
  27. });
  28. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement