Embed pdf document and activate scroll to submit

2

Good morning, I would like to embed a pdf document on my site for a PHP registration form, where after pulling the scroll to the end of the pdf, the submit button is activated. Here's the code, I'm using jquery to fetch the scrool state, but I can not.

echo '<embed src="ficha.pdf" width="600" height="200" type="application/pdf"  class="pdfrender">';

// jquery

$(".pdfrender").on("scroll", function(){ alert("OK");   });
    
asked by anonymous 22.01.2018 / 12:43

0 answers