getting value from the database
<p>I want to check the validation of username and password, for wrong value i should get alert saying that "invalid username and password", 
I am a newbie to javascript and php can anyone guide me with this</p>

<pre><code>function loginValidation()
{
    var username = $('#username').val();
    var password = $('#password').val();
    if ( username == "" || password == "" )
    {
        alert("Invalid entry...!!!");
        return false;
    }
}
</code></pre>
