Embed pdf document and enable scroll to submit

Asked

Viewed 35 times

2

Good morning, I would like to embed a pdf document on my website for a PHP registration form, in which after pulling the scroll to the end of the pdf, the commit button is activated. Here’s the code, I’m using jquery to find the scrool state, but I’m not getting it.

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

//jquery

$(".pdfrender").on("scroll", function(){ alert("OK");   });
  • What happens? Does it give an error? If so, which one? It just doesn’t work? It works, but it doesn’t generate the expected result? What result did it get? What was expected?

  • it does not return the Alert when moving the scroll.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.