i have to use "jstl" in my project and split email address separate with '@'
so i coded
$('#Email1').val('${fn:split(user.user_email,'@')[0]}');
but there is error come up.
error message is: "The left-hand side of an assignment must be a variable"
what's wrong? and what should i modify here?
now i'm using "jquery", "jsp", "spring" and this is jsp page script sector
if there is another way to split in jstl could you let me know?
$('#email2').val('${fn:split(user.user_email,'@')[1]}');
thank you for your answer