Passing in two variables to onclick
I have a PHP script which is looping through a database result. Each row will create a link
<a href="#" class="mylink"><?php echo #PHP; ?></a>
I'll then have a jQuery, for the mylink onclick even to call a page. On I need to pass into the even two vairbales from my row, an ID, but also a date string.
mylink('34, '2015-05-08'); for example, but it's that the syntax for a JS on click even.