Hi, I have the following jquery script:
<script type="text/javascript">
$(document).ready(function(){
$("a").on("click", function() {
var img = $(this).children('img').attr('src');
var p = $(this).children('p').text();
});
});
</script>
That collects the data of:
<a href="#">
<img src="img/bebe.jpg" alt="">
<p>prueba 1</p>
</a>
<a href="#">
<img src="img/taller.jpg" alt="">
<p>prueba 2</p>
</a>
I want to send those javascript variables to another HTML page.