2015-07-10 135 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」/>

回答