2015-07-10 122 views
0

In the above JSP i am trying to pass the text box value through href tag. I came across the above syntax in stackoverflow. But it does not seem to be working. Need help.如何通过<a href tag

HTML

<input id="orderedItems" type="text" name="orderedItems" value="hiii" /> 
<a href='products.jsp?id=1&loginid=${userName}&orderim='+ document.getElementById('orderedItems').value;> 
+0

一个文本框的值传递到另一个jsp页面<输入的ID = “orderedItems” 类型= “文本” 名称= “orderedItems” 值= “HIII”/>

回答