Suppose there is a function
$(document).ready(function(){ $('.myclass').click(function(){ } });
which hangs on blocks, say, with information on the product. How to pass a parameter to this function, for example, a product code? Previously, on pure js I wrote the onmouseclick = "" event on each block and from php I substituted the necessary parameter.