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

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -