Search Value Input Jquery

1

I have the following field on the "index.php" page:

<input type="hidden" id="exemplo" value="<?php $varExemplo; ?>">

I would like to get the value of this field on another page using jQuery.

var exemploIndex = $("#exemplo").val();

Would it be something like this? Or would you need to declare the form as well? Thank you!

    
asked by anonymous 01.07.2017 / 01:48

0 answers