我敢肯定这可能非常简单,但它就在这里......
<input type='textbox' name='qtybox' id='qtybox' style='width:20px;'> <a href=""/Cart.asp?Code=123456&QTY=GET QTYBOX VALUE HERE"" onclick=""somefunction(this, event); return false;"" title=""Add To Cart""><img src=""testbutton.gif"" alt=""Add To Cart"" title=""Add To Cart""/></a>
我试过了
<input type='textbox' name='qtybox' id='qtybox' style='width:20px;'> <a href=""/Cart.asp?Code=123456&QTY='+document.getElementById('qtybox').value;'"" onclick=""somefunction(this, event); return false;"" title=""Add To Cart""><img src=""testbutton.gif"" alt=""Add To Cart"" title=""Add To Cart""/></a>
但它失败了。有任何想法吗?