how to add a javascript function in jsp page by passing a hidden field variable to the function -
i have java script function:
function viewjunction(siteid, name{ }
i want include function in jsp page in siteid should pass through url query parameter.
get siteid request
assuming siteidparmeter
query parameter, , send function
<% string querysiteid = request.getparameter("siteidparmeter");%> viewjunction('<%=querysiteid%>', 'yourname');
to put inside input:
<input type="hidden" id="siteidinput" name="siteidinput" value="<%=querysiteid%>"/>
wiki
Comments
Post a Comment