java - Reference a passed in parameter in JQuery JSP -
I am trying to refer to a parameter in JQuery with Java code even so far away from me :
Java:
Hashmapped
JSP:
int i = $ ("# minumumAge") Val (); Var dateOffset = (24 * 60 * 60 * 1000) * i;
However, I can not get the minimum egg value in the i variable. Please tell me what is the correct syntax?
Try:
& lt;% int minAge = ( Integer) request.getAttribute ("minumumAge"); & Gt%; Var I = & lt;% = minAge%>; Var dateOffset = (24 * 60 * 60 * 1000) * i;
Comments
Post a Comment