I have the following markup that I need to put the value of the input named "ProductCode" to a variable named lets say product_id using jquery
It's probably easy but for some reason I simply can't figure it out.
<input type="image" src="/v/vspfiles/templates/100/images/buttons/btn_addtocart.gif" id="btnaddtocart" name="btnaddtocart" alt="Add to cart" border="0" onclick="return addToCart2(this.form, this);" />
<input type="hidden" name="ReplaceCartID" value="" />
<input type="hidden" name="ProductCode" value="M406789" />
<input type="hidden" name="e" value="" />
<input type="hidden" name="ReturnTo" value="ShoppingCart.asp" />