2016-04-08 7 views
0

フォームのログインが空であるかどうかを確認するためにjavascriptの代わりにUIkit通知を使用したいと思います。しかし、このコードではうまくいきません。yootheme UIkit notify not work

function checkLoginForm() 
    { 
     var loginname = document.forms["formLogin"]["login"].value; 
     if (loginname == null || loginname == "") 
     { 
      UIkit.notify({ 
        message : 'UserName must be filled out', 
        timeout : 5000, 
        status : 'success' 
       }); 
      return false; 
     } 
     return true; 
    } 

お願いします。 ありがとうございます。

答えて

0

$.UIkit.notify("Your message text", {status: 'danger'});