jeudi 25 août 2016

How to make statement condition Session in Javacript?

I am using laravel 5.0 and I want to make if condition in javascript.

if(Session::get('Role') == '3'){
    $('#add_username').val(Session::get('User_Name'));
}

But I have got an error:

Uncaught SyntaxError: Unexpected token :



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire