I have an input field in HTML as shown below. This is for a PDF where I am changing pdf's page number. The page of the PDF is set to page 1 initially.
<input type="text" id="PDFNumber" name="name" value = "1">
I am triggering the change value using JS injection
var pdf = document.getElementById('PDFNumber');
pdf.value = "15"; //I can see the change happening
As you see I am changing the PDF page from 1 to 15. The page does not refresh to 15. What am I doing wrong? Basically in PDF there is an InputField for page number, where we type the page number and press enter. Do I have to also create an enter event here?
Sample PDF: http://www.pdf995.com/samples/pdf.pdf