I는 다음과 같습니다 사업부가 있습니다 가져 오기 값은 다른 숨겨진 입력에 보내
<div class="Block Moveable Panel AddToWishlistLink" id="SideProductAddToWishList" style="display:">
<div class="BlockContent">
<form name="frmWishList" id="frmWishList" action="null" method="get">
<input type="hidden" name="action" value="add" />
<input type="hidden" name="product_id" value="117" />
<input type="hidden" name="variation_id" value="" class="WishListVariationId"/>
<input type="submit" class="wishlist-button" value="Add to wishlist" alt="Add to Wish List" />
</form>
</div>
내가 PRODUCT_ID의 값을 취할 수있는 자바 스크립트를 필요로 무엇을 적은 수도를 "FormInput528"의 이름과 ID로 숨겨진 입력을 입력하면 숨겨진 입력의 값이이 경우 117로 변경됩니다. 나는 여전히 매우 새로운 JS이므로 어떤 도움도 굉장 할 것입니다! 고맙습니다! 당신이 jQuery를 사용하는 경우
그런 숨겨진 입력을 사용하는 것은 나쁜 습관입니다. HTML을 다운로드하고 내 자신의 값을 쉽게 입력 할 수 있습니다. –
약간의 작업을하고 코드를 게시해야하기 때문에 코드를 처음부터 작성하는 것이 아니라 사람들이 그 코드의 잘못된 부분을 볼 수 있습니다. – vroomfondel