Hello.
There is a page with several elements. Looks like that:
<a class="buytocredit1"> <img src="/about/3.png"> <input class="el1" name="element_id" type="hidden" value="<?=$arElement["ID"]?>"> </a>
Such links 10-15 on the page.
And there is a jquery script:
$(document).ready(function() { $('.buytocredit1').live('click', function() { var productid = $('.buytocredit1 .el1').val; //alert(productid); return false; }); });
Tell me how to assign a variable "productid" to the value of the nested input name = "element_id" when clicking on a link.