function checkId(val){
alert("hello " + val);
if(val == "yes"){
<% req.getSession().setAttribute("buttonValue","yes"); %>
} else {
<% req.getSession().setAttribute("buttonValue","nil"); %>
}
}
Value keeps changing to 'yes' & 'nil' as per button
click
which is fine when I check it as alert, but this function always set 'buttonValue' to 'nil'.
Please help, Thanks in advance.